C# Class SuperSocket.ClientEngine.TcpClientSession

Inheritance: SuperSocket.ClientEngine.ClientSession
Mostra file Open project: kerryjiang/SuperSocket.ClientEngine Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Connect ( EndPoint remoteEndPoint ) : void
TcpClientSession ( ) : System
TrySend ( ArraySegment segment ) : bool
TrySend ( IList segments ) : bool

Protected Methods

Method Description
EnsureSocketClosed ( ) : bool
EnsureSocketClosed ( Socket prevClient ) : bool
IsIgnorableException ( Exception e ) : bool
IsIgnorableSocketError ( int errorCode ) : bool
OnGetSocket ( SocketAsyncEventArgs e ) : void
OnSendingCompleted ( ) : void
ProcessConnect ( Socket socket, object state, SocketAsyncEventArgs e ) : void
Proxy_Completed ( object sender, SuperSocket.ClientEngine.ProxyEventArgs e ) : void
SendInternal ( PosList items ) : void
SocketEventArgsCompleted ( object sender, SocketAsyncEventArgs e ) : void

Private Methods

Method Description
DequeueSend ( ) : void
DetectConnected ( ) : bool
GetHostOfEndPoint ( EndPoint endPoint ) : string
GetSendingItems ( ) : PosList>
GetSendingQueue ( ) : IBatchQueue>

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( EndPoint remoteEndPoint ) : void
remoteEndPoint System.Net.EndPoint
return void

EnsureSocketClosed() protected method

protected EnsureSocketClosed ( ) : bool
return bool

EnsureSocketClosed() protected method

protected EnsureSocketClosed ( Socket prevClient ) : bool
prevClient Socket
return bool

IsIgnorableException() protected method

protected IsIgnorableException ( Exception e ) : bool
e System.Exception
return bool

IsIgnorableSocketError() protected method

protected IsIgnorableSocketError ( int errorCode ) : bool
errorCode int
return bool

OnGetSocket() protected abstract method

protected abstract OnGetSocket ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
return void

OnSendingCompleted() protected method

protected OnSendingCompleted ( ) : void
return void

ProcessConnect() protected method

protected ProcessConnect ( Socket socket, object state, SocketAsyncEventArgs e ) : void
socket Socket
state object
e SocketAsyncEventArgs
return void

Proxy_Completed() protected method

protected Proxy_Completed ( object sender, SuperSocket.ClientEngine.ProxyEventArgs e ) : void
sender object
e SuperSocket.ClientEngine.ProxyEventArgs
return void

SendInternal() protected abstract method

protected abstract SendInternal ( PosList items ) : void
items PosList
return void

SocketEventArgsCompleted() protected abstract method

protected abstract SocketEventArgsCompleted ( object sender, SocketAsyncEventArgs e ) : void
sender object
e SocketAsyncEventArgs
return void

TcpClientSession() public method

public TcpClientSession ( ) : System
return System

TrySend() public method

public TrySend ( ArraySegment segment ) : bool
segment ArraySegment
return bool

TrySend() public method

public TrySend ( IList segments ) : bool
segments IList
return bool