public static int Main(String[] args) { HttpServer httpServer; if (args.GetLength(0) > 0) { httpServer = new MyHttpServer(Convert.ToInt16(args[0]), null); } else { httpServer = new MyHttpServer(8080, null); } var thread = new Thread(httpServer.listen); thread.Start(); return(0); }
public static int Main( String[] args ) { HttpServer httpServer; if (args.GetLength( 0 ) > 0) { httpServer = new MyHttpServer( Convert.ToInt16( args[0] ), null ); } else { httpServer = new MyHttpServer( 8080, null ); } var thread = new Thread( httpServer.listen ); thread.Start(); return 0; }