Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
HandleDisconnect ( ClientContext context ) : void | ||
OnAccept ( IAsyncResult ar ) : void | ||
OnReceive ( IAsyncResult ar ) : void | ||
OnSend ( IAsyncResult ar ) : void |
protected CreateAndConnect ( |
||
endPoint | Endpoint that should get connected. | |
return | 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. |
return | void |
protected SetupNewContext ( Socket socket ) : void | ||
socket | Socket | The socket. |
return | void |
public TcpTransport ( |
||
endPoint | End point to accept new connections on. | |
factory | Message factory. | |
return | System |