C# Class 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.
Inheritance: ProxyReactorBase
Afficher le fichier Open project: helios-io/helios

Méthodes protégées

Méthode Description
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

Method Details

ReceivedData() protected méthode

protected ReceivedData ( NetworkData availableData, ReactorResponseChannel responseChannel ) : void
availableData Helios.Net.NetworkData
responseChannel Helios.Reactor.Response.ReactorResponseChannel
Résultat void

SingleReceiveLoopProxyReactor() protected méthode

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
Résultat System.Collections.Generic