public HttpServer(int port)
 {
     this.port = port;
     consoleManager = new ConsoleManager();
     allUsers = new Hashtable();
     allNotes = new Hashtable();
 }
Esempio n. 2
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;
        }