Свойство | Type | Description | |
---|---|---|---|
_socket | Socket |
Méthode | 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 |
Méthode | Description | |
---|---|---|
_asyncConnect ( ConnectState state ) : void |
在非主线程执行:连接服务器
|
|
_asyncConnectCB ( IAsyncResult ar ) : void |
在非主线程执行:连接服务器结果回调
|
|
connectCB ( IAsyncResult ar ) : void |
public _onConnectStatus ( ConnectState state ) : void | ||
state | ConnectState | |
Résultat | void |
public connectTo ( string ip, int port, ConnectCallback callback, object userData ) : void | ||
ip | string | |
port | int | |
callback | ConnectCallback | |
userData | object | |
Résultat | void |
public send ( KBEngine.MemoryStream stream ) : bool | ||
stream | KBEngine.MemoryStream | |
Résultat | bool |