예제 #1
0
        public static void Main(String[] args)
        {
            Console.WriteLine("Starting HTTP Server. ");
            Console.WriteLine("Accepting HTTP requests at http://localhost:8081/");
            httpServer = new SimpleHTTPServer("", 8081);

            PoDServer podserver = new PoDServer();
            Thread podthread = new Thread(podserver.ServerMethod);
            podserver.ProcessPackets(httpServer.packetsServer);
            podthread.Start();
            Console.WriteLine("Press CTRL C to exit HTTPServer.");
            podthread.Join();
            httpServer._serverThread.Join();
        }
예제 #2
0
        public static void Main(String[] args)
        {
            Console.WriteLine("Starting HTTP Server. ");
            Console.WriteLine("Accepting HTTP requests at http://localhost:8081/");
            httpServer = new SimpleHTTPServer("", 8081);

            PoDServer podserver = new PoDServer();
            Thread    podthread = new Thread(podserver.ServerMethod);

            podserver.ProcessPackets(httpServer.packetsServer);
            podthread.Start();
            Console.WriteLine("Press CTRL C to exit HTTPServer.");
            podthread.Join();
            httpServer._serverThread.Join();
        }