Property | Type | Description | |
---|---|---|---|
_client | Socket |
Method | Description | |
---|---|---|
Close ( ) : void | ||
Close ( |
||
Configure ( IConnectionConfig config ) : void | ||
IsOpen ( ) : bool | ||
Open ( ) : void | ||
OpenAsync ( ) : Task |
||
TcpConnection ( NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
TcpConnection ( NetworkEventLoop eventLoop, INode node, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
TcpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
TcpConnection ( Socket client, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System |
Method | Description | |
---|---|---|
BeginReceiveInternal ( ) : void | ||
Dispose ( bool disposing ) : void | ||
SendInternal ( byte buffer, int index, int length, INode destination ) : void | ||
SetLocal ( Socket client ) : void |
After a TCP connection is successfully established, set the value of the local node to whatever port / IP was assigned.
|
Method | Description | |
---|---|---|
InitClient ( ) : void | ||
InitClient ( Socket client ) : void |
public Configure ( IConnectionConfig config ) : void | ||
config | IConnectionConfig | |
return | void |
protected SendInternal ( byte buffer, int index, int length, INode destination ) : void | ||
buffer | byte | |
index | int | |
length | int | |
destination | INode | |
return | void |
public TcpConnection ( NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
eventLoop | NetworkEventLoop | |
node | INode | |
encoder | IMessageEncoder | |
decoder | IMessageDecoder | |
allocator | IByteBufAllocator | |
bufferSize | int | |
return | System |
public TcpConnection ( NetworkEventLoop eventLoop, INode node, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
eventLoop | NetworkEventLoop | |
node | INode | |
timeout | System.TimeSpan | |
encoder | IMessageEncoder | |
decoder | IMessageDecoder | |
allocator | IByteBufAllocator | |
bufferSize | int | |
return | System |
public TcpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
client | Socket | |
encoder | IMessageEncoder | |
decoder | IMessageDecoder | |
allocator | IByteBufAllocator | |
bufferSize | int | |
return | System |
public TcpConnection ( Socket client, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System | ||
client | Socket | |
bufferSize | int | |
return | System |