/// This value is properly initialized after the handshake of the SSL or TLS protocol. Currently, there's no way of knowing when a handshake is completed. However as soon as either a Send or a Receive returns, the handshake must be complete.
/// If SSL or TLS is not used, this property returns SslAlgorithms.NONE.
///
public SslAlgorithms ActiveEncryption {
get {
if (m_Controller == null)
return SslAlgorithms.NONE;
return m_Controller.ActiveEncryption;
}
}
private SocketController m_Controller;
private SecurityOptions m_Options;
private AsyncAcceptResult m_AcceptResult;
private AsyncResult m_ConnectResult;
private AsyncResult m_ShutdownResult;
private bool m_SentShutdownNotification;
private bool m_IsDisposed;
///