C# Class Helios.Reactor.Response.ReactorResponseChannel

Wraps a remote endpoint which connected IReactor instance inside a IConnection object
Inheritance: IConnection
Show file Open project: helios-io/helios Class Usage Examples

Protected Properties

Property Type Description
UnreadMessages ICircularBuffer

Public Methods

Method Description
BeginReceive ( ) : void
BeginReceive ( ReceivedDataCallback callback ) : void
Close ( ) : void
Configure ( IConnectionConfig config ) : void
Dispose ( ) : void
InvokeReceiveIfNotNull ( NetworkData data ) : void
IsOpen ( ) : bool
Open ( ) : void
OpenAsync ( ) : Task
Send ( NetworkData data ) : void
Send ( byte buffer, int index, int length, INode destination ) : void
StopReceive ( ) : void

Protected Methods

Method Description
BeginReceiveInternal ( ) : void
Dispose ( bool disposing ) : void
InvokeErrorIfNotNull ( Exception ex ) : void
ReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop ) : System
ReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop ) : System
StopReceiveInternal ( ) : void

Private Methods

Method Description
OnReceive ( NetworkData data ) : void

Method is called directly by the ReactorBase implementation to send data to this IConnection. Can also be called by the socket itself if this reactor doesn't use ReactorProxyResponseChannel.

Method Details

BeginReceive() public method

public BeginReceive ( ) : void
return void

BeginReceive() public method

public BeginReceive ( ReceivedDataCallback callback ) : void
callback ReceivedDataCallback
return void

BeginReceiveInternal() protected abstract method

protected abstract BeginReceiveInternal ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Configure() public abstract method

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InvokeErrorIfNotNull() protected method

protected InvokeErrorIfNotNull ( Exception ex ) : void
ex System.Exception
return void

InvokeReceiveIfNotNull() public method

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

IsOpen() public method

public IsOpen ( ) : bool
return bool

Open() public method

public Open ( ) : void
return void

OpenAsync() public method

public OpenAsync ( ) : Task
return Task

ReactorResponseChannel() protected method

protected ReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop ) : System
reactor ReactorBase
outboundSocket Socket
endPoint System.Net.IPEndPoint
eventLoop Helios.Net.NetworkEventLoop
return System

ReactorResponseChannel() protected method

protected ReactorResponseChannel ( ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop ) : System
reactor ReactorBase
outboundSocket Socket
eventLoop Helios.Net.NetworkEventLoop
return System

Send() public method

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

Send() public method

public Send ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
return void

StopReceive() public method

public StopReceive ( ) : void
return void

StopReceiveInternal() protected abstract method

protected abstract StopReceiveInternal ( ) : void
return void

Property Details

UnreadMessages protected property

protected ICircularBuffer UnreadMessages
return ICircularBuffer