C# Class Helios.Net.Connections.UdpConnection

UDP IConnection implementation. N.B. It's worth nothing that Node in this IConnection implementation refers to the local port / address that this UDP socket is bound to, rather than a remote host.
Inheritance: UnstreamedConnectionBase
ファイルを表示 Open project: helios-io/helios

Protected Properties

Property Type Description
Client Socket
RemoteEndpoint System.Net.EndPoint

Public Methods

Method Description
Close ( ) : void
Close ( Exception reason ) : void
Configure ( IConnectionConfig config ) : void
IsOpen ( ) : bool
Open ( ) : void
OpenAsync ( ) : Task
UdpConnection ( NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
UdpConnection ( NetworkEventLoop eventLoop, INode binding, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
UdpConnection ( Socket client ) : System
UdpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System

Protected Methods

Method Description
BeginReceiveInternal ( ) : void
Dispose ( bool disposing ) : void
InitClient ( ) : void
InitClient ( Socket client ) : void
ReceiveCallback ( IAsyncResult ar ) : void
SendInternal ( byte buffer, int index, int length, INode destination ) : void

Method Details

BeginReceiveInternal() protected method

protected BeginReceiveInternal ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Close() public method

public Close ( Exception reason ) : void
reason System.Exception
return void

Configure() public method

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

Dispose() protected method

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

InitClient() protected method

protected InitClient ( ) : void
return void

InitClient() protected method

protected InitClient ( Socket client ) : void
client Socket
return void

IsOpen() public method

public IsOpen ( ) : bool
return bool

Open() public method

public Open ( ) : void
return void

OpenAsync() public method

public OpenAsync ( ) : Task
return Task

ReceiveCallback() protected method

protected ReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

SendInternal() protected method

protected SendInternal ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
return void

UdpConnection() public method

public UdpConnection ( NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
eventLoop NetworkEventLoop
binding INode
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
return System

UdpConnection() public method

public UdpConnection ( NetworkEventLoop eventLoop, INode binding, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
eventLoop NetworkEventLoop
binding INode
timeout System.TimeSpan
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
return System

UdpConnection() public method

public UdpConnection ( Socket client ) : System
client Socket
return System

UdpConnection() public method

public UdpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
client Socket
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
return System

Property Details

Client protected_oe property

protected Socket Client
return Socket

RemoteEndpoint protected_oe property

protected EndPoint,System.Net RemoteEndpoint
return System.Net.EndPoint