Property | Type | Description | |
---|---|---|---|
_listConnections |
Method | Description | |
---|---|---|
GetConnectionByID ( long connectionID ) : IConnection |
get IConnection by connectionID
|
|
GetSocketAsyncEventArgs ( ) : |
get
|
|
NextConnectionID ( ) : long |
生成下一个连接ID
|
|
ReleaseSocketAsyncEventArgs ( |
release
|
|
Start ( ) : void |
启动
|
|
Stop ( ) : void |
停止
|
Method | Description | |
---|---|---|
BaseHost ( int socketBufferSize, int messageBufferSize ) : System |
new
|
|
OnConnected ( IConnection connection ) : void |
OnConnected
|
|
OnDisconnected ( IConnection connection, |
OnDisconnected
|
|
OnError ( IConnection connection, |
OnError
|
|
OnMessageReceived ( IConnection connection, |
OnMessageReceived
|
|
OnSendCallback ( IConnection connection, |
OnSendCallback
|
|
OnStartSending ( IConnection connection, |
OnStartSending
|
|
RegisterConnection ( IConnection connection ) : void |
register connection
|
protected BaseHost ( int socketBufferSize, int messageBufferSize ) : System | ||
socketBufferSize | int | |
messageBufferSize | int | |
return | System |
public GetConnectionByID ( long connectionID ) : IConnection | ||
connectionID | long | |
return | IConnection |
public GetSocketAsyncEventArgs ( ) : |
||
return |
protected OnConnected ( IConnection connection ) : void | ||
connection | IConnection | |
return | void |
protected OnDisconnected ( IConnection connection, |
||
connection | IConnection | |
ex | ||
return | void |
protected OnError ( IConnection connection, |
||
connection | IConnection | |
ex | ||
return | void |
protected OnMessageReceived ( IConnection connection, |
||
connection | IConnection | |
e | ||
return | void |
protected OnSendCallback ( IConnection connection, |
||
connection | IConnection | |
e | ||
return | void |
protected OnStartSending ( IConnection connection, |
||
connection | IConnection | |
packet | ||
return | void |
protected RegisterConnection ( IConnection connection ) : void | ||
connection | IConnection | |
return | void |
public ReleaseSocketAsyncEventArgs ( |
||
e | ||
return | void |