public void Initialize(int HttpPortNumber = 8080)
        {
            httpServer = new MyHttpServer(HttpPortNumber);

            httpServer.PingReceived += HttpServer_PingReceived; ;
            httpServer.DeviceRegistration += HttpServer_DeviceRegistration;

            Main_Thread = new Thread(new ThreadStart(httpServer.listen));
            Main_Thread.Start();
        }
 public HttpProcessor(TcpClient s, HttpServer srv)
 {
     this.socket = s;
     this.srv = srv;
 }
示例#3
0
        private static int MAX_POST_SIZE = 10 * 1024 * 1024; // 10MB

        public HttpProcessor(TcpClient s, HttpServer srv)
        {
            this.socket = s;
            this.srv    = srv;
        }