C# Class SuperSocket.ClientEngine.TcpClientSession

Inheritance: SuperSocket.ClientEngine.ClientSession
Afficher le fichier Open project: kerryjiang/SuperSocket.ClientEngine Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

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

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( EndPoint remoteEndPoint ) : void
remoteEndPoint System.Net.EndPoint
Résultat void

EnsureSocketClosed() protected méthode

protected EnsureSocketClosed ( ) : bool
Résultat bool

EnsureSocketClosed() protected méthode

protected EnsureSocketClosed ( Socket prevClient ) : bool
prevClient Socket
Résultat bool

IsIgnorableException() protected méthode

protected IsIgnorableException ( Exception e ) : bool
e System.Exception
Résultat bool

IsIgnorableSocketError() protected méthode

protected IsIgnorableSocketError ( int errorCode ) : bool
errorCode int
Résultat bool

OnGetSocket() protected abstract méthode

protected abstract OnGetSocket ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
Résultat void

OnSendingCompleted() protected méthode

protected OnSendingCompleted ( ) : void
Résultat void

ProcessConnect() protected méthode

protected ProcessConnect ( Socket socket, object state, SocketAsyncEventArgs e ) : void
socket Socket
state object
e SocketAsyncEventArgs
Résultat void

Proxy_Completed() protected méthode

protected Proxy_Completed ( object sender, SuperSocket.ClientEngine.ProxyEventArgs e ) : void
sender object
e SuperSocket.ClientEngine.ProxyEventArgs
Résultat void

SendInternal() protected abstract méthode

protected abstract SendInternal ( PosList items ) : void
items PosList
Résultat void

SocketEventArgsCompleted() protected abstract méthode

protected abstract SocketEventArgsCompleted ( object sender, SocketAsyncEventArgs e ) : void
sender object
e SocketAsyncEventArgs
Résultat void

TcpClientSession() public méthode

public TcpClientSession ( ) : System
Résultat System

TrySend() public méthode

public TrySend ( ArraySegment segment ) : bool
segment ArraySegment
Résultat bool

TrySend() public méthode

public TrySend ( IList segments ) : bool
segments IList
Résultat bool