public static ITcpConnection CreateServerFromSocket(Guid connectionId,
                                                     IPEndPoint remoteEndPoint,
                                                     Socket socket,
                                                     X509Certificate certificate,
                                                     bool verbose)
 {
     Ensure.NotNull(certificate, "certificate");
     var connection = new TcpConnectionSsl(connectionId, remoteEndPoint, verbose);
     connection.InitServerSocket(socket, certificate, verbose);
     return connection;
 }
Beispiel #2
0
        public static ITcpConnection CreateServerFromSocket(Guid connectionId,
                                                            IPEndPoint remoteEndPoint,
                                                            Socket socket,
                                                            X509Certificate certificate,
                                                            bool verbose)
        {
            Ensure.NotNull(certificate, "certificate");
            var connection = new TcpConnectionSsl(connectionId, remoteEndPoint, verbose);

            connection.InitServerSocket(socket, certificate, verbose);
            return(connection);
        }
Beispiel #3
0
        public static ITcpConnection CreateServerFromSocket(Guid connectionId,
                                                            IPEndPoint remoteEndPoint,
                                                            Socket socket,
                                                            Func <X509Certificate> serverCertificateSelector,
                                                            Func <X509Certificate, X509Chain, SslPolicyErrors, ValueTuple <bool, string> > clientCertValidator,
                                                            bool verbose)
        {
            var connection = new TcpConnectionSsl(connectionId, remoteEndPoint, verbose);

            connection.InitServerSocket(socket, serverCertificateSelector, clientCertValidator, verbose);
            return(connection);
        }