C# Class EventStore.Transport.Tcp.TcpConnection

Inheritance: TcpConnectionBase, ITcpConnection
显示文件 Open project: ysw/mono-socket-problem Class Usage Examples

Public Methods

Method Description
Close ( ) : void
EnqueueSend ( IEnumerable data ) : void
ReceiveAsync ( Action callback ) : void
ToString ( ) : string

Private Methods

Method Description
CloseInternal ( SocketError socketError ) : void
CreateAcceptedTcpConnection ( IPEndPoint effectiveEndPoint, Socket socket ) : TcpConnection
CreateConnectingTcpConnection ( IPEndPoint remoteEndPoint, EventStore.Transport.Tcp.TcpClientConnector connector, Action onConnectionEstablished, SocketError>.Action onConnectionFailed ) : TcpConnection
InitSocket ( Socket socket ) : void
OnReceiveAsyncCompleted ( object sender, SocketAsyncEventArgs e ) : void
OnSendAsyncCompleted ( object sender, SocketAsyncEventArgs e ) : void
ProcessReceive ( SocketAsyncEventArgs socketArgs ) : void
ProcessSend ( SocketAsyncEventArgs socketArgs ) : void
ReturnReceivingSocketArgs ( ) : void
ReturnSendingSocketArgs ( ) : void
StartReceive ( ) : void
TcpConnection ( IPEndPoint effectiveEndPoint ) : System
TryDequeueReceivedData ( ) : void
TrySend ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

EnqueueSend() public method

public EnqueueSend ( IEnumerable data ) : void
data IEnumerable
return void

ReceiveAsync() public method

public ReceiveAsync ( Action callback ) : void
callback Action
return void

ToString() public method

public ToString ( ) : string
return string