C# 클래스 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.
상속: UnstreamedConnectionBase
파일 보기 프로젝트 열기: helios-io/helios

보호된 프로퍼티들

프로퍼티 타입 설명
Client Socket
RemoteEndpoint System.Net.EndPoint

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

BeginReceiveInternal() 보호된 메소드

protected BeginReceiveInternal ( ) : void
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

Close() 공개 메소드

public Close ( Exception reason ) : void
reason System.Exception
리턴 void

Configure() 공개 메소드

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

InitClient() 보호된 메소드

protected InitClient ( ) : void
리턴 void

InitClient() 보호된 메소드

protected InitClient ( Socket client ) : void
client Socket
리턴 void

IsOpen() 공개 메소드

public IsOpen ( ) : bool
리턴 bool

Open() 공개 메소드

public Open ( ) : void
리턴 void

OpenAsync() 공개 메소드

public OpenAsync ( ) : Task
리턴 Task

ReceiveCallback() 보호된 메소드

protected ReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
리턴 void

SendInternal() 보호된 메소드

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

UdpConnection() 공개 메소드

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

UdpConnection() 공개 메소드

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
리턴 System

UdpConnection() 공개 메소드

public UdpConnection ( Socket client ) : System
client Socket
리턴 System

UdpConnection() 공개 메소드

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

프로퍼티 상세

Client 보호되어 있는 프로퍼티

protected Socket Client
리턴 Socket

RemoteEndpoint 보호되어 있는 프로퍼티

protected EndPoint,System.Net RemoteEndpoint
리턴 System.Net.EndPoint