C# Class Helios.Reactor.Response.TcpReactorResponseChannel

A ReactorResponseChannel instance which manages all of the socket I/O for the child connection directly. Shares the same underlying IFiber as the parent IReactor responsible for creating this child.
Inheritance: ReactorResponseChannel
Show file Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
Configure ( IConnectionConfig config ) : void
Send ( NetworkData data ) : void
TcpReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
TcpReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System

Protected Methods

Method Description
BeginReceiveInternal ( ) : void
StopReceiveInternal ( ) : void

Private Methods

Method Description
SendInternal ( byte buffer, int index, int length, INode remoteHost ) : void

Method Details

BeginReceiveInternal() protected method

protected BeginReceiveInternal ( ) : void
return void

Configure() public method

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
return void

Send() public method

public Send ( NetworkData data ) : void
data Helios.Net.NetworkData
return void

StopReceiveInternal() protected method

protected StopReceiveInternal ( ) : void
return void

TcpReactorResponseChannel() public method

public TcpReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
reactor ReactorBase
outboundSocket Socket
endPoint System.Net.IPEndPoint
eventLoop Helios.Net.NetworkEventLoop
bufferSize int
return System

TcpReactorResponseChannel() public method

public TcpReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
reactor ReactorBase
outboundSocket Socket
eventLoop Helios.Net.NetworkEventLoop
bufferSize int
return System