Example #1
0
 /**
  * Netty + Java provide WRAPPER FACADES for all of the underlying functionality of this program
  */
 public static void main(String[] args) throws Exception {
   if (args.length == 1) {
     try {
       int port = Integer.parseInt(args[0]);
       EchoServer.accept(port);
     } catch (NumberFormatException e) {
       System.err.println("Argument" + args[0] + " must be an integer.");
       System.exit(1);
     }
   }
 }