Свойство | Тип | Описание | |
---|---|---|---|
OnConn | Action |
||
OnDisconnect | Action |
||
OnRecv | SocketError>.Action | ||
OnSend | SocketError>.Action |
Метод | Описание | |
---|---|---|
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 ( |
Метод | Описание | |
---|---|---|
Bind ( string host, int port ) : void | ||
Listen ( int backlog ) : void | ||
OnAcceptComplete ( |
||
OnComplete ( object sender, |
||
OnConnectComplete ( |
||
OnDisconnectComplete ( |
||
OnRecvComplete ( |
||
OnSendComplete ( |
public AcceptAsync ( |
||
accpetSocket | ||
Результат | Task |
public ConnectAsync ( string host, int port ) : bool | ||
host | string | |
port | int | |
Результат | bool |
public RecvAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
Результат | bool |
public SendAsync ( byte buffer, int offset, int count ) : bool | ||
buffer | byte | |
offset | int | |
count | int | |
Результат | bool |
public TSocket ( |
||
poller | ||
Результат | System |
public TSocket ( |
||
poller | ||
host | string | |
port | int | |
Результат | System |