Метод | Описание | |
---|---|---|
CNetTCPWork ( ) : System | ||
Connect ( int id, string host, int port, |
创建连接
|
|
Disconnect ( int id ) : void |
断开连接
|
|
DisconnectAll ( ) : void |
关闭所有连接
|
|
GetCurrentServerID ( ) : int | ||
GetReadyToConnectSID ( ) : int | ||
ReConnect ( ) : void |
重连当前连接
|
|
SendMessage ( int nMessageID, Byte data, int id = -1 ) : bool | ||
SetCurrentServerID ( int v ) : void | ||
SetReadyToConnectSID ( int v ) : void | ||
ToNetWorkString ( ) : string | ||
Update ( ) : void |
生命周期内每侦更新
|
Метод | Описание | |
---|---|---|
__Clear ( ) : void | ||
__Update ( |
public Connect ( int id, string host, int port, |
||
id | int | |
host | string | |
port | int | |
listener | ||
Результат | void |
public SendMessage ( int nMessageID, Byte data, int id = -1 ) : bool | ||
nMessageID | int | |
data | Byte | |
id | int | |
Результат | bool |
public SetCurrentServerID ( int v ) : void | ||
v | int | |
Результат | void |
public SetReadyToConnectSID ( int v ) : void | ||
v | int | |
Результат | void |