SuperSocket unity 網路筆記

2022-02-07 00:13:45 字數 2268 閱讀 6140

學習supersocket 必須要注意的 **是

static

void main(string

args)

console.writeline(

"伺服器啟動成功, 按 'q' 退出伺服器!");

while (console.readkey().keychar != 'q'

)

console.writeline();

console.writeline(

"伺服器關閉");

console.readkey();

}

學習 unity 通訊 必須注意的**是

//

伺服器ip位址和埠號

serveradress = "

ws:";

websocket = new

websocket(serveradress);

websocket.open();

public

void

addlistenersocket()

//

登入 傳送監聽

private

void websocket_opened(object

sender, eventargs e)

//關閉監聽

public

virtual

void websocket_closed(object

sender, eventargs e)

//接收監聽

public

void websocket_messagereceived(object

sender, messagereceivedeventargs e)

}public

virtual

void

user_offline_return(jsondata jsontext)

public

virtual

void

user_chat_return(jsondata jsontext)

public

virtual

void

user_battle_return(jsondata jsontext)

public

virtual

void

user_information_return(jsondata jsontext)

public

virtual

void

user_trading_return(jsondata jsontext)

public

virtual

void

user_trading_cancel_return(jsondata jsontext)

public

virtual

void

user_trading_confirm_one_return(jsondata jsontext)

public

virtual

void

user_trading_confirm_two_return(jsondata jsontext)

public

virtual

void

user_trading_confirm_three_return(jsondata jsontext)

public

virtual

void

user_trading_confirm_final_return(jsondata jsontext)

void

update()

}//服務端返回後,資料賦值這裡處理

void

splitdisposal(jsondata mes)

}//根據需要 呼叫以下方法

public

override

void

user_chat_return(jsondata jsontext)

public

override

void

user_battle_return(jsondata jsontext)

public

override

void

user_information_return(jsondata jsontext)

多益網路2020筆試題

題型 選擇題,填空題,問答題,一道程式設計題。sql 優先輸出字段,其餘的照常輸出 忘記了字段是num,主要是乙個範圍,還是varchar。暫時 按varchar處理 select from table order by case when 字段 條件 then 1 else 0 end selec...

springboot如何實現 網路直播課筆記

底座支撐就是spring ioc,aop spring叫容器比如說水杯,放了一堆bean物件 new 工廠的方式 ioc容器 生產物件,依賴注入,需要知道物件裡有多少個屬性,有多少個方法,知道這些資訊 xml檔案配置 註解的方式 其他的方式進行bean資訊的定義 inte ce中間層,讀取bean基...

神經網路 by 研三筆記

可以參考 涉及 梯度 批量梯度下降 隨機梯度下降 小批量隨機梯度下降。1.前言 神經網路就是乙個輸入到輸出的對映關係,可以看作函式關係。相近概念 支援向量機 線性回歸 非線性回歸 分類 識別 監督學習 資料集 標本 樣本 梯度下降。2.基本原理 涉及的概念有 神經元 隱藏層 輸入 輸出層 啟用函式 ...