Property | Type | Description | |
---|---|---|---|
OnConn | Action |
||
OnDisconnect | Action |
||
OnRecv | SocketError>.Action | ||
OnSend | SocketError>.Action |
Method | Description | |
---|---|---|
AcceptAsync ( |
||
ConnectAsync ( string host, int port ) : bool | ||
Dispose ( ) : void | ||
RecvAsync ( byte buffer, int offset, int count ) : bool | ||
SendAsync ( byte buffer, int offset, int count ) : bool | ||
TSocket ( |
||
TSocket ( |
Method | Description | |
---|---|---|
Bind ( string host, int port ) : void | ||
Listen ( int backlog ) : void | ||
OnAcceptComplete ( |
||
OnComplete ( object sender, |
||
OnConnectComplete ( |
||
OnDisconnectComplete ( |
||
OnRecvComplete ( |
||
OnSendComplete ( |
public AcceptAsync ( |
||
accpetSocket | ||
return | Task |
public ConnectAsync ( string host, int port ) : bool | ||
host | string | |
port | int | |
return | bool |
public RecvAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
return | bool |
public SendAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
return | bool |
public TSocket ( |
||
poller | ||
host | string | |
port | int | |
return | System |