Example #1
0
 public SslTransportHandler(ITransportLayerHandler next, IServerParameters serverParameters)
 {
     _next             = next;
     _serverParameters = serverParameters;
     _inputStream      = new InputStream(this);
     next.Callback     = this;
 }
Example #2
0
 public SslTransportHandler(ITransportLayerHandler next, IServerParameters serverParameters)
 {
     _next = next;
     _serverParameters = serverParameters;
     _inputStream = new InputStream(this);
     next.Callback = this;
 }
Example #3
0
 public IServer CreateServer(ConnectionProviderType type, IServerParameters parameters)
 {
     if (type == ConnectionProviderType.DotNet)
     {
         return(new DotNetServer(GetLocalEndPoint(), parameters));
     }
     else if (type == ConnectionProviderType.Mono)
     {
         return(new MonoServer(GetLocalEndPoint(), parameters));
     }
     else
     {
         throw new NotSupportedException();
     }
 }
Example #4
0
 internal Server(IServerParameters parameters)
 {
     _parameters = parameters;
 }
Example #5
0
 public MonoServer(IPEndPoint endpoint, IServerParameters parameters)
     : base(endpoint, parameters)
 {
     Certificate = new ServerCertificate(parameters.ServerCertificate);
 }
Example #6
0
 internal Server(IServerParameters parameters)
 {
     _parameters = parameters;
 }
Example #7
0
            public override IServer CreateServer(IServerParameters parameters)
            {
                var certificate = ResourceManager.DefaultServerCertificate;

                return(new OpenSslServer(this, EndPoint, certificate, parameters));
            }
Example #8
0
 public MonoServer(ServerFactory factory, IPEndPoint endpoint, ServerCertificate pfx, IServerParameters parameters)
     : base(factory, endpoint, parameters)
 {
     Certificate = pfx;
 }
Example #9
0
 public OpenSslServer(ServerFactory factory, IPEndPoint endpoint, ServerCertificate certificate, IServerParameters parameters)
     : base(factory, endpoint, parameters)
 {
     Certificate = certificate;
 }
Example #10
0
 public abstract IServer CreateServer(IServerParameters parameters);
Example #11
0
 internal SslTransportFactory(IServerParameters serverParameters, ILayerFactory next)
 {
     _serverParameters = serverParameters;
     _next             = next;
 }
Example #12
0
 internal SslTransportFactory(IServerParameters serverParameters, ILayerFactory next)
 {
     _serverParameters = serverParameters;
     _next = next;
 }