// This appears in Core Web Programming from Prentice // Hall Publishers, and may be freely used or adapted. // 1997 Marty Hall, http://www.apl.jhu.edu/~hall/java/ public class NetworkServerTest { public static void main(String[] args) { int port = 5555; if (args.length > 0) port = Integer.parseInt(args[0]); NetworkServer nwServer = new NetworkServer(port, 1); nwServer.listen(); } }