示例#1
0
 public static void main(String[] args) throws NumberFormatException, IOException {
   if (args.length != 1) {
     System.out.println(USAGE);
     System.exit(0);
   }
   Server server = new Server(Integer.parseInt(args[0]));
   server.run();
 }
示例#2
0
文件: Server.java 项目: dro248/CS-240
 public Server(int port) {
   SERVER_PORT_NUMBER = port;
   run(port);
 }