Property | Type | Description | |
---|---|---|---|
Listener | Socket |
Method | Description | |
---|---|---|
CheckWasDisposed ( ) : void | ||
Configure ( IConnectionConfig config ) : void | ||
Dispose ( ) : void | ||
Dispose ( bool disposing ) : void | ||
Send ( |
||
Send ( byte buffer, int index, int length, INode destination ) : void | ||
Start ( ) : void | ||
Stop ( ) : void |
Method | Description | |
---|---|---|
CreateNetworkState ( Socket socket, INode remotehost ) : |
||
CreateNetworkState ( Socket socket, INode remotehost, IByteBuf buffer, int bufferSize ) : |
||
NodeConnected ( INode node, IConnection responseChannel ) : void |
Invoked when a new node has connected to this server
|
|
NodeDisconnected ( |
Invoked when a node's connection to this server has been disconnected
|
|
OnErrorIfNotNull ( |
||
ReactorBase ( |
||
ReceivedData ( |
Abstract method to be filled in by a child class - data received from the network is injected into this method via the NetworkData data type.
|
|
StartInternal ( ) : void | ||
StopInternal ( ) : void |
Method | Description | |
---|---|---|
CloseConnection ( |
||
CloseConnection ( IConnection remoteHost ) : void |
Closes a connection to a remote host (without shutting down the server.)
|
public abstract Configure ( IConnectionConfig config ) : void | ||
config | IConnectionConfig | |
return | void |
protected CreateNetworkState ( Socket socket, INode remotehost ) : |
||
socket | Socket | |
remotehost | INode | |
return |
protected CreateNetworkState ( Socket socket, INode remotehost, IByteBuf buffer, int bufferSize ) : |
||
socket | Socket | |
remotehost | INode | |
buffer | IByteBuf | |
bufferSize | int | |
return |
public abstract Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
protected NodeConnected ( INode node, IConnection responseChannel ) : void | ||
node | INode | The |
responseChannel | IConnection | The channel that the server can respond to |
return | void |
protected NodeDisconnected ( |
||
reason | The reason why this node disconnected | |
closedChannel | IConnection | The |
return | void |
protected OnErrorIfNotNull ( |
||
reason | ||
connection | IConnection | |
return | void |
protected ReactorBase ( |
||
localAddress | ||
localPort | int | |
eventLoop | ||
encoder | IMessageEncoder | |
decoder | IMessageDecoder | |
allocator | IByteBufAllocator | |
socketType | SocketType | |
protocol | ProtocolType | |
bufferSize | int | |
return | System |
protected ReceivedData ( |
||
availableData | Data available from the network, including a response address | |
responseChannel | Available channel for handling network response | |
return | void |
public Send ( |
||
data | ||
return | void |
public abstract Send ( byte buffer, int index, int length, INode destination ) : void | ||
buffer | byte | |
index | int | |
length | int | |
destination | INode | |
return | void |