C# 클래스 Helios.Reactor.SingleReceiveLoopProxyReactor

IReactor implementation which spawns ReactorProxyResponseChannel instances for responding directly with connected clients, but maintains a single event loop for responding to incoming requests, rather than allowing each ReactorProxyResponseChannel to maintain its own independent event loop. Great for scenarios where you want to be able to set a single event loop for a server and forget about it.
상속: ProxyReactorBase
파일 보기 프로젝트 열기: helios-io/helios

보호된 메소드들

메소드 설명
ReceivedData ( NetworkData availableData, ReactorResponseChannel responseChannel ) : void
SingleReceiveLoopProxyReactor ( IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, SocketType socketType = SocketType.Stream, ProtocolType protocol = ProtocolType.Tcp, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System.Collections.Generic

메소드 상세

ReceivedData() 보호된 메소드

protected ReceivedData ( NetworkData availableData, ReactorResponseChannel responseChannel ) : void
availableData Helios.Net.NetworkData
responseChannel Helios.Reactor.Response.ReactorResponseChannel
리턴 void

SingleReceiveLoopProxyReactor() 보호된 메소드

protected SingleReceiveLoopProxyReactor ( IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, SocketType socketType = SocketType.Stream, ProtocolType protocol = ProtocolType.Tcp, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System.Collections.Generic
localAddress System.Net.IPAddress
localPort int
eventLoop Helios.Net.NetworkEventLoop
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
socketType SocketType
protocol ProtocolType
bufferSize int
리턴 System.Collections.Generic