Свойство | Type | Description | |
---|---|---|---|
OnConn | Action |
||
OnDisconnect | Action |
||
OnRecv | SocketError>.Action | ||
OnSend | SocketError>.Action |
Méthode | 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 ( |
Méthode | Description | |
---|---|---|
Bind ( string host, int port ) : void | ||
Listen ( int backlog ) : void | ||
OnAcceptComplete ( |
||
OnComplete ( object sender, |
||
OnConnectComplete ( |
||
OnDisconnectComplete ( |
||
OnRecvComplete ( |
||
OnSendComplete ( |
public AcceptAsync ( |
||
accpetSocket | ||
Résultat | Task |
public ConnectAsync ( string host, int port ) : bool | ||
host | string | |
port | int | |
Résultat | bool |
public RecvAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
Résultat | bool |
public SendAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
Résultat | bool |
public TSocket ( |
||
poller | ||
host | string | |
port | int | |
Résultat | System |