Inheritance: HttpServer
Example #1
0
 public static int Main(String[] args)
 {
     HttpServer httpServer;
     if (args.GetLength(0) > 0) {
         httpServer = new MyHttpServer(Convert.ToInt16(args[0]));
     } else {
         httpServer = new MyHttpServer(8080);
     }
     Thread thread = new Thread(new ThreadStart(httpServer.listen));
     thread.Start();
     return 0;
 }