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
파일 보기 프로젝트 열기: helios-io/helios

공개 메소드들

메소드 설명
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