Пример #1
0
        public static int Main(String[] args) {
            // некая инфа о машине
            ConsoleManager man = new ConsoleManager();
            man.printInfo();

            Console.WriteLine("\nWelcome to Server!\n");
            Console.Title = "Welcome to Server!"; 
            HttpServer httpServer = new HttpServer(11000);
            Thread thread = new Thread(new ThreadStart(httpServer.listen));
            thread.Start();
            return 0;
        }
        private static int MAX_POST_SIZE = 10 * 1024 * 1024; // 10MB

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