Esempio n. 1
0
        // Only for use by TcpEndpoint.
        internal SslTransceiver(Communicator communicator, ITransceiver del, string hostOrAdapterName, bool incoming)
        {
            _communicator = communicator;
            _engine       = communicator.SslEngine;
            _delegate     = del;
            _incoming     = incoming;
            if (_incoming)
            {
                _adapterName = hostOrAdapterName;
            }
            else
            {
                _host = hostOrAdapterName;
            }

            SslStream = null;
        }
Esempio n. 2
0
 // Only for use by TcpEndpoint.
 internal SslSocket(
     Communicator communicator,
     SingleStreamSocket underlying,
     string hostOrAdapterName,
     bool incoming)
 {
     _communicator = communicator;
     _engine       = communicator.SslEngine;
     _underlying   = underlying;
     _incoming     = incoming;
     if (_incoming)
     {
         _adapterName = hostOrAdapterName;
     }
     else
     {
         _host = hostOrAdapterName;
     }
 }
Esempio n. 3
0
 // Only for use by TcpEndpoint.
 internal SslTransceiver(
     Communicator communicator,
     ITransceiver underlying,
     string hostOrAdapterName,
     bool incoming)
 {
     _communicator = communicator;
     _engine       = communicator.SslEngine;
     _underlying   = underlying;
     _incoming     = incoming;
     if (_incoming)
     {
         _adapterName = hostOrAdapterName;
     }
     else
     {
         _host = hostOrAdapterName;
     }
 }
Esempio n. 4
0
        // Only for use by ConnectorI, AcceptorI.
        internal SslTransceiver(Communicator communicator, ITransceiver del, string hostOrAdapterName, bool incoming)
        {
            _communicator = communicator;
            _engine       = communicator.SslEngine;
            _delegate     = del;
            _incoming     = incoming;
            if (_incoming)
            {
                _adapterName = hostOrAdapterName;
            }
            else
            {
                _host = hostOrAdapterName;
            }

            SslStream = null;

            _verifyPeer = _communicator.GetPropertyAsInt("IceSSL.VerifyPeer") ?? 2;
        }
Esempio n. 5
0
 // Only for use by TcpEndpoint.
 internal SslTransceiver(
     Communicator communicator,
     ITransceiver underlying,
     string hostOrAdapterName,
     bool incoming,
     IConnector?connector = null)
 {
     Debug.Assert(incoming || connector != null);
     _communicator = communicator;
     _connector    = connector;
     _engine       = communicator.SslEngine;
     _underlying   = underlying;
     _incoming     = incoming;
     if (_incoming)
     {
         _adapterName = hostOrAdapterName;
     }
     else
     {
         _host = hostOrAdapterName;
     }
 }
Esempio n. 6
0
 internal SslEndpoint(SslEngine engine, Communicator communicator, string host, int port, IPAddress?sourceAddress,
                      int timeout, string connectionId, bool compressionFlag)
     : base(communicator, host, port, sourceAddress, timeout, connectionId, compressionFlag) =>