private void InitializeHTTPServer() { if (0 < Settings.Default.HTTPPort && 65000 > Settings.Default.HTTPPort) { httpServer = new SimpleHttpServer(Settings.Default.HTTPPort); } else { httpServer = new SimpleHttpServer(8080); } httpServer.OnGETRequest += httpServer_OnGETRequest; httpServer.OnPOSTRequest += httpServer_OnPOSTRequest; httpServer.OnHTTPServerStarted += httpServer_OnHTTPServerStarted; }
public HttpProcessor(TcpClient s, HttpServer srv) { this.socket = s; this.srv = srv; }