Property | Type | Description | |
---|---|---|---|
_socket | Socket |
Method | Description | |
---|---|---|
NetworkInterface ( ) : System | ||
_onConnectStatus ( ConnectState state ) : void | ||
close ( ) : void | ||
connectTo ( string ip, int port, ConnectCallback callback, object userData ) : void | ||
packetReceiver ( ) : |
||
process ( ) : void | ||
reset ( ) : void | ||
send ( KBEngine.MemoryStream stream ) : bool | ||
sock ( ) : Socket | ||
valid ( ) : bool |
Method | Description | |
---|---|---|
_asyncConnect ( ConnectState state ) : void |
在非主线程执行:连接服务器
|
|
_asyncConnectCB ( IAsyncResult ar ) : void |
在非主线程执行:连接服务器结果回调
|
|
connectCB ( IAsyncResult ar ) : void |
public _onConnectStatus ( ConnectState state ) : void | ||
state | ConnectState | |
return | void |
public connectTo ( string ip, int port, ConnectCallback callback, object userData ) : void | ||
ip | string | |
port | int | |
callback | ConnectCallback | |
userData | object | |
return | void |
public send ( KBEngine.MemoryStream stream ) : bool | ||
stream | KBEngine.MemoryStream | |
return | bool |