// 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; }
// 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; } }
// 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; } }
// 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; }
// 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; } }
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) =>