예제 #1
0
 public void Start(int port)
 {
     httpServer = new MyHttpServer(port);
     thread = new Thread(new ThreadStart(httpServer.listenStart));
     thread.Start();
 }
예제 #2
0
 public HttpProcessor(TcpClient s, HttpServer srv)
 {
     this.socket = s;
     this.srv = srv;
 }
예제 #3
0
 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;
 }