C# 클래스 Helios.Net.Connections.TcpConnection

상속: UnstreamedConnectionBase
파일 보기 프로젝트 열기: helios-io/helios

보호된 프로퍼티들

프로퍼티 타입 설명
_client Socket

공개 메소드들

메소드 설명
Close ( ) : void
Close ( Exception reason ) : void
Configure ( IConnectionConfig config ) : void
IsOpen ( ) : bool
Open ( ) : void
OpenAsync ( ) : Task
TcpConnection ( NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
TcpConnection ( NetworkEventLoop eventLoop, INode node, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
TcpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
TcpConnection ( Socket client, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System

보호된 메소드들

메소드 설명
BeginReceiveInternal ( ) : void
Dispose ( bool disposing ) : void
SendInternal ( byte buffer, int index, int length, INode destination ) : void
SetLocal ( Socket client ) : void

After a TCP connection is successfully established, set the value of the local node to whatever port / IP was assigned.

비공개 메소드들

메소드 설명
InitClient ( ) : void
InitClient ( Socket client ) : 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

IsOpen() 공개 메소드

public IsOpen ( ) : bool
리턴 bool

Open() 공개 메소드

public Open ( ) : void
리턴 void

OpenAsync() 공개 메소드

public OpenAsync ( ) : Task
리턴 Task

SendInternal() 보호된 메소드

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

SetLocal() 보호된 메소드

After a TCP connection is successfully established, set the value of the local node to whatever port / IP was assigned.
protected SetLocal ( Socket client ) : void
client Socket
리턴 void

TcpConnection() 공개 메소드

public TcpConnection ( NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
eventLoop NetworkEventLoop
node INode
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
bufferSize int
리턴 System

TcpConnection() 공개 메소드

public TcpConnection ( NetworkEventLoop eventLoop, INode node, System.TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
eventLoop NetworkEventLoop
node INode
timeout System.TimeSpan
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
bufferSize int
리턴 System

TcpConnection() 공개 메소드

public TcpConnection ( Socket client, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
client Socket
encoder IMessageEncoder
decoder IMessageDecoder
allocator IByteBufAllocator
bufferSize int
리턴 System

TcpConnection() 공개 메소드

public TcpConnection ( Socket client, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE ) : System
client Socket
bufferSize int
리턴 System

프로퍼티 상세

_client 보호되어 있는 프로퍼티

protected Socket _client
리턴 Socket