Метод | Описание | |
---|---|---|
AsyncTcpServer ( |
Constructor for a new server using an IPAddress and Port
|
|
AsyncTcpServer ( |
Constructor for a new server using an end point
|
|
Start ( ) : void |
Starts the TCP Server listening for new clients.
|
|
Stop ( ) : void |
Stops the TCP Server listening for new clients and disconnects any currently connected clients.
|
|
Write ( |
Writes a byte array to a given TCP Client
|
|
Write ( |
Writes a string to a given TCP Client
|
|
Write ( byte bytes ) : void |
Writes a byte array to all clients connected.
|
|
Write ( string data ) : void |
Writes a string to all clients connected.
|
Метод | Описание | |
---|---|---|
HandleData ( byte data, |
Метод | Описание | |
---|---|---|
AcceptTcpClientCallback ( IAsyncResult result ) : void |
Callback for the accept tcp client opertaion.
|
|
AsyncTcpServer ( ) : System |
Private constructor for the common constructor operations.
|
|
ReadCallback ( IAsyncResult result ) : void |
Callback for the read opertaion.
|
|
WriteCallback ( IAsyncResult result ) : void |
Callback for the write opertaion.
|
public AsyncTcpServer ( |
||
localaddr | The Local IP Address for the server. | |
port | int | The port for the server. |
Результат | System |
public AsyncTcpServer ( |
||
localEP | The local end point for the server. | |
Результат | System |
protected HandleData ( byte data, |
||
data | byte | |
client | ||
Результат | void |
public Write ( |
||
tcpClient | The client to write to | |
bytes | byte | The bytes to send |
Результат | void |
public Write ( |
||
tcpClient | The client to write to | |
data | string | The string to send. |
Результат | void |
public Write ( byte bytes ) : void | ||
bytes | byte | The bytes to send. |
Результат | void |
public Write ( string data ) : void | ||
data | string | The string to send. |
Результат | void |