Свойство | Тип | Описание | |
---|---|---|---|
ConnectionLock | object | ||
Connections | List |
||
Listener | Socket |
Метод | Описание | |
---|---|---|
DisconnectAll ( ) : void | ||
Dispose ( ) : void | ||
GetConnections ( ) : IEnumerable |
||
Send ( Connection connection, IEnumerable |
||
Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int | ||
Shutdown ( ) : void |
Shuts down the server instance.
|
|
Start ( ) : bool | ||
Stop ( ) : bool |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void | ||
Listen ( string bindIP, int port ) : bool |
Start listening on given interface and port.
|
|
OnClientConnection ( |
||
OnClientDisconnect ( |
||
OnDataReceived ( |
||
OnDataSent ( |
Метод | Описание | |
---|---|---|
AcceptCallback ( IAsyncResult result ) : void |
Accept callbacks from listener socket.
|
|
NotifyRemoveConnection ( Connection connection ) : void | ||
ReceiveCallback ( IAsyncResult result ) : void | ||
RemoveConnection ( Connection connection, bool raiseEvent ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected Listen ( string bindIP, int port ) : bool | ||
bindIP | string | The interface IP to listen for connections. |
port | int | The port to listen for connections. |
Результат | bool |
protected OnClientConnection ( |
||
e | ||
Результат | void |
protected OnClientDisconnect ( |
||
e | ||
Результат | void |
protected OnDataReceived ( |
||
e | ||
Результат | void |
protected OnDataSent ( |
||
e | ||
Результат | void |
public Send ( Connection connection, IEnumerable |
||
connection | Connection | |
data | IEnumerable |
|
flags | SocketFlags | |
Результат | int |
public Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int | ||
connection | Connection | |
buffer | byte | |
start | int | |
count | int | |
flags | SocketFlags | |
Результат | int |