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
Показать файл Открыть проект

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

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