Метод | Описание | |
---|---|---|
Send ( |
Send a buffer to a certain end point.
|
|
Start ( ) : void |
Starts the specified end point.
|
|
TcpTransport ( |
Initializes a new instance of the TcpTransport class.
|
Метод | Описание | |
---|---|---|
CreateAndConnect ( |
Create a new socket and try to connect to a remote client/server.
|
|
SetupNewContext ( Socket socket ) : void |
Create a new context and allocate it's buffer.
|
Метод | Описание | |
---|---|---|
HandleDisconnect ( ClientContext context ) : void | ||
OnAccept ( IAsyncResult ar ) : void | ||
OnReceive ( IAsyncResult ar ) : void | ||
OnSend ( IAsyncResult ar ) : void |
protected CreateAndConnect ( |
||
endPoint | Endpoint that should get connected. | |
Результат | ClientContext |
public Send ( |
||
endPoint | End point that the buffer should be sent to. | |
buffer | byte | buffer to send. |
offset | int | Position of first byte to send. |
count | int | Number of bytes, from offset, to send. |
Результат | void |
protected SetupNewContext ( Socket socket ) : void | ||
socket | Socket | The socket. |
Результат | void |
public TcpTransport ( |
||
endPoint | End point to accept new connections on. | |
factory | Message factory. | |
Результат | System |