Property | Type | Description | |
---|---|---|---|
mLoggedIn | bool |
Method | Description | |
---|---|---|
OnRegister ( ) : void | ||
OnRemove ( ) : void | ||
SendConnect ( ) : void |
发送连接请求
|
|
SendMessage ( ByteBuffer buffer ) : void |
发送消息
|
|
SocketClient ( ) : UnityEngine |
Method | 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 | |
return | void |