C# Class Helios.Reactor.Udp.UdpProxyReactor

Inheritance: ProxyReactorBase
显示文件 Open project: helios-io/helios

Protected Properties

Property Type Description
RemoteEndPoint System.Net.EndPoint

Public Methods

Method Description
Configure ( IConnectionConfig config ) : void
Dispose ( bool disposing ) : void
Send ( byte buffer, int index, int length, INode destination ) : void
UdpProxyReactor ( IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System

Protected Methods

Method Description
StartInternal ( ) : void
StopInternal ( ) : void

Private Methods

Method Description
CloseConnection ( Exception reason, IConnection remoteConnection ) : void
CloseConnection ( IConnection remoteHost ) : void
ReceiveCallback ( IAsyncResult ar ) : void
SendCallback ( IAsyncResult ar ) : void

Method Details

Configure() public method

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

Send() public method

public Send ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
return void

StartInternal() protected method

protected StartInternal ( ) : void
return void

StopInternal() protected method

protected StopInternal ( ) : void
return void

UdpProxyReactor() public method

public UdpProxyReactor ( 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
return System

Property Details

RemoteEndPoint protected_oe property

protected EndPoint,System.Net RemoteEndPoint
return System.Net.EndPoint