C# Класс SuperSocket.SocketEngine.AsyncStreamSocketSession

Наследование: SocketSession, IAsyncSocketSessionBase, INegotiateSocketSession
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnSendingCompleted ( SendingQueue queue ) : void
SendAsync ( SendingQueue queue ) : void
SendSync ( SendingQueue queue ) : void

Приватные методы

Метод Описание
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

Описание методов

ApplySecureProtocol() публичный Метод

public ApplySecureProtocol ( ) : void
Результат void

AsyncStreamSocketSession() публичный Метод

public AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool ) : System
client System.Net.Sockets.Socket
security SslProtocols
bufferStatePool IPool
Результат System

AsyncStreamSocketSession() публичный Метод

public AsyncStreamSocketSession ( Socket client, SslProtocols security, IPool bufferStatePool, bool isReset ) : System
client System.Net.Sockets.Socket
security SslProtocols
bufferStatePool IPool
isReset bool
Результат System

OnSendingCompleted() защищенный Метод

protected OnSendingCompleted ( SendingQueue queue ) : void
queue SendingQueue
Результат void

SendAsync() защищенный Метод

protected SendAsync ( SendingQueue queue ) : void
queue SendingQueue
Результат void

SendSync() защищенный Метод

protected SendSync ( SendingQueue queue ) : void
queue SendingQueue
Результат void

Start() публичный Метод

Starts this session communication.
public Start ( ) : void
Результат void