Esempio n. 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();
 }
Esempio n. 2
0
 public Server(int port) {
   SERVER_PORT_NUMBER = port;
   run(port);
 }