C# Class SuperSocket.SocketEngine.AsyncStreamSocketSession

Inheritance: SocketSession, IAsyncSocketSessionBase, INegotiateSocketSession
Afficher le fichier Open project: kerryjiang/SuperSocket Class Usage Examples

Private Properties

Свойство Type Description
BeginInitStream IAsyncResult
CreateSslStream System.Net.Security.SslStream
INegotiateSocketSession void
OnBeginInitStream void
OnBeginInitStream void
OnBeginInitStreamOnSessionConnected void
OnEndWrite void
OnNegotiateCompleted void
OnSessionStarting void
OnStreamEndRead void
ValidateClientCertificate bool

Méthodes publiques

Méthode Description
ApplySecureProtocol ( ) : void
AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool ) : System
AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool, bool isReset ) : System
Start ( ) : void

Starts this session communication.

Méthodes protégées

Méthode Description
OnSendingCompleted ( SendingQueue queue ) : void
SendAsync ( SendingQueue queue ) : void
SendSync ( SendingQueue queue ) : void

Private Methods

Méthode Description
BeginInitStream ( AsyncCallback asyncCallback ) : IAsyncResult
CreateSslStream ( ICertificateConfig certConfig ) : SslStream
INegotiateSocketSession ( ) : void
OnBeginInitStream ( IAsyncResult result ) : void
OnBeginInitStream ( IAsyncResult result, bool connect ) : void
OnBeginInitStreamOnSessionConnected ( IAsyncResult result ) : void
OnEndWrite ( IAsyncResult result ) : void
OnNegotiateCompleted ( bool negotiateResult ) : void
OnSessionStarting ( ) : void
OnStreamEndRead ( IAsyncResult result ) : void
ValidateClientCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

ApplySecureProtocol() public méthode

public ApplySecureProtocol ( ) : void
Résultat void

AsyncStreamSocketSession() public méthode

public AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool ) : System
client System.Net.Sockets.Socket
security SslProtocols
bufferStatePool IPool
Résultat System

AsyncStreamSocketSession() public méthode

public AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool, bool isReset ) : System
client System.Net.Sockets.Socket
security SslProtocols
bufferStatePool IPool
isReset bool
Résultat System

OnSendingCompleted() protected méthode

protected OnSendingCompleted ( SendingQueue queue ) : void
queue SendingQueue
Résultat void

SendAsync() protected méthode

protected SendAsync ( SendingQueue queue ) : void
queue SendingQueue
Résultat void

SendSync() protected méthode

protected SendSync ( SendingQueue queue ) : void
queue SendingQueue
Résultat void

Start() public méthode

Starts this session communication.
public Start ( ) : void
Résultat void