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
Afficher le fichier Open project: helios-io/helios

Protected Properties

Свойство Type Description
Client Socket
RemoteEndpoint System.Net.EndPoint

Méthodes publiques

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

Méthodes protégées

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

protected BeginReceiveInternal ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Close() public méthode

public Close ( Exception reason ) : void
reason System.Exception
Résultat void

Configure() public méthode

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InitClient() protected méthode

protected InitClient ( ) : void
Résultat void

InitClient() protected méthode

protected InitClient ( Socket client ) : void
client Socket
Résultat void

IsOpen() public méthode

public IsOpen ( ) : bool
Résultat bool

Open() public méthode

public Open ( ) : void
Résultat void

OpenAsync() public méthode

public OpenAsync ( ) : Task
Résultat Task

ReceiveCallback() protected méthode

protected ReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

SendInternal() protected méthode

protected SendInternal ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
Résultat void

UdpConnection() public méthode

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

UdpConnection() public méthode

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

UdpConnection() public méthode

public UdpConnection ( Socket client ) : System
client Socket
Résultat System

UdpConnection() public méthode

public UdpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator ) : System
client Socket
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
Résultat System

Property Details

Client protected_oe property

protected Socket Client
Résultat Socket

RemoteEndpoint protected_oe property

protected EndPoint,System.Net RemoteEndpoint
Résultat System.Net.EndPoint