Свойство | Type | Description | |
---|---|---|---|
mLoggedIn | bool |
Méthode | Description | |
---|---|---|
OnRegister ( ) : void | ||
OnRemove ( ) : void | ||
SendConnect ( ) : void |
发送连接请求
|
|
SendMessage ( ByteBuffer buffer ) : void |
发送消息
|
|
SocketClient ( ) : UnityEngine |
Méthode | Description | |
---|---|---|
Close ( ) : void | ||
ConnectServer ( string host, int port ) : void | ||
OnConnect ( IAsyncResult asr ) : void | ||
OnDisconnected ( DisType dis, string msg ) : void | ||
OnRead ( IAsyncResult asr ) : void | ||
OnReceive ( byte bytes, int length ) : void |
接收到消息
|
|
OnReceivedMessage ( MemoryStream, ms ) : void |
接收到消息
|
|
OnWrite ( IAsyncResult r ) : void |
向链接写入数据流
|
|
PrintBytes ( ) : void | ||
RemainingBytes ( ) : long |
剩余的字节
|
|
SessionSend ( byte bytes ) : void |
会话发送
|
|
WriteMessage ( byte message ) : void |
public SendMessage ( ByteBuffer buffer ) : void | ||
buffer | ByteBuffer | |
Résultat | void |