public SwitchboardServer(IPEndPoint listenEp, ISwitchboardRequestHandler handler) { cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(60)); this.server = new TcpListener(listenEp); this.handler = handler; }
public SecureSwitchboardServer(IPEndPoint endPoint, ISwitchboardRequestHandler handler, X509Certificate certificate) : base(endPoint, handler) { this.certificate = certificate; }
public SwitchboardServer(IPEndPoint listenEp, ISwitchboardRequestHandler handler) { this.server = new TcpListener(listenEp); this.handler = handler; }