public SslTransportHandler(ITransportLayerHandler next, IServerParameters serverParameters) { _next = next; _serverParameters = serverParameters; _inputStream = new InputStream(this); next.Callback = this; }
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(); } }
internal Server(IServerParameters parameters) { _parameters = parameters; }
public MonoServer(IPEndPoint endpoint, IServerParameters parameters) : base(endpoint, parameters) { Certificate = new ServerCertificate(parameters.ServerCertificate); }
public override IServer CreateServer(IServerParameters parameters) { var certificate = ResourceManager.DefaultServerCertificate; return(new OpenSslServer(this, EndPoint, certificate, parameters)); }
public MonoServer(ServerFactory factory, IPEndPoint endpoint, ServerCertificate pfx, IServerParameters parameters) : base(factory, endpoint, parameters) { Certificate = pfx; }
public OpenSslServer(ServerFactory factory, IPEndPoint endpoint, ServerCertificate certificate, IServerParameters parameters) : base(factory, endpoint, parameters) { Certificate = certificate; }
public abstract IServer CreateServer(IServerParameters parameters);
internal SslTransportFactory(IServerParameters serverParameters, ILayerFactory next) { _serverParameters = serverParameters; _next = next; }