Home | History | Annotate | Download | only in chatserver

Lines Matching refs:port

52  * It sets up a server socket using AsynchronousServerSocketChannel listening to a specified port.
56 private int port;
62 * @param port to listen to
65 public ChatServer(int port) throws IOException {
68 this.port = port;
118 listener.bind(new InetSocketAddress(port));
166 System.err.println("ChatServer [-port <port number>]");
171 int port = 5000;
176 if (args[0].equals("-port")) {
177 port = Integer.parseInt(args[1]);
185 System.out.println("Running on port " + port);
186 new ChatServer(port).run();