C# Класс 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.
Наследование: ProxyReactorBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
StartInternal ( ) : void
StopInternal ( ) : void

Приватные методы

Метод Описание
AcceptCallback ( IAsyncResult ar ) : void
CloseConnection ( Exception ex, IConnection remoteHost ) : void
CloseConnection ( IConnection remoteHost ) : void
ReceiveCallback ( IAsyncResult ar ) : void

Описание методов

Configure() публичный Метод

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
Результат void

Dispose() публичный Метод

public Dispose ( bool disposing ) : void
disposing bool
Результат void

Send() публичный Метод

public Send ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
Результат void

StartInternal() защищенный Метод

protected StartInternal ( ) : void
Результат void

StopInternal() защищенный Метод

protected StopInternal ( ) : void
Результат void

TcpProxyReactor() публичный Метод

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
Результат System