C# Class Helios.Reactor.Tcp.TcpProxyReactor

High-performance TCP reactor that uses a single buffer and manages all client connections internally. Passes ReactorProxyResponseChannel instances to connected clients and allows them to set up their own event loop behavior. All I/O is still handled internally through the proxy reactor.
Inheritance: ProxyReactorBase
Afficher le fichier Open project: helios-io/helios

Méthodes publiques

Méthode Description
Configure ( IConnectionConfig config ) : void
Dispose ( bool disposing ) : void
Send ( byte buffer, int index, int length, INode destination ) : void
TcpProxyReactor ( IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System

Méthodes protégées

Méthode Description
StartInternal ( ) : void
StopInternal ( ) : void

Private Methods

Méthode Description
AcceptCallback ( IAsyncResult ar ) : void
CloseConnection ( Exception ex, IConnection remoteHost ) : void
CloseConnection ( IConnection remoteHost ) : void
ReceiveCallback ( IAsyncResult ar ) : void

Method Details

Configure() public méthode

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
Résultat void

Dispose() public méthode

public Dispose ( bool disposing ) : void
disposing bool
Résultat void

Send() public méthode

public Send ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
Résultat void

StartInternal() protected méthode

protected StartInternal ( ) : void
Résultat void

StopInternal() protected méthode

protected StopInternal ( ) : void
Résultat void

TcpProxyReactor() public méthode

public TcpProxyReactor ( IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
localAddress System.Net.IPAddress
localPort int
eventLoop Helios.Net.NetworkEventLoop
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
bufferSize int
Résultat System