C# Class SuperSocket.SocketEngine.AsyncStreamSocketSession

Inheritance: SocketSession, IAsyncSocketSessionBase, INegotiateSocketSession
Exibir arquivo Open project: kerryjiang/SuperSocket Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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.

Protected Methods

Method Description
OnSendingCompleted ( SendingQueue queue ) : void
SendAsync ( SendingQueue queue ) : void
SendSync ( SendingQueue queue ) : void

Private Methods

Method 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 method

public ApplySecureProtocol ( ) : void
return void

AsyncStreamSocketSession() public method

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

AsyncStreamSocketSession() public method

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

OnSendingCompleted() protected method

protected OnSendingCompleted ( SendingQueue queue ) : void
queue SendingQueue
return void

SendAsync() protected method

protected SendAsync ( SendingQueue queue ) : void
queue SendingQueue
return void

SendSync() protected method

protected SendSync ( SendingQueue queue ) : void
queue SendingQueue
return void

Start() public method

Starts this session communication.
public Start ( ) : void
return void