public void Start(int port) { httpServer = new MyHttpServer(port); thread = new Thread(new ThreadStart(httpServer.listenStart)); thread.Start(); }
public HttpProcessor(TcpClient s, HttpServer srv) { this.socket = s; this.srv = srv; }
public HttpProcessor(TcpClient s, HttpServer srv, X509Certificate2 ssl_certificate = null) { this.ssl_certificate = ssl_certificate; this.secure_https = ssl_certificate != null; this.tcpClient = s; this.base_uri_this_server = new Uri("http" + (this.secure_https ? "s" : "") + "://" + s.Client.LocalEndPoint.ToString(), UriKind.Absolute); this.srv = srv; }