Home | History | Annotate | Download | only in chatserver

Lines Matching refs:client

45  * Handles a cycle of reading / writing on the {@code Client}.
62 * read on the client. Handles closed channels and errors while reading.
63 * If the client is still connected a new round of actions are called.
65 public void run(final Client client) {
66 callback.beforeRead(client);
67 client.read(new CompletionHandler<Integer, ByteBuffer>() {
72 client.close();
73 System.out.println("Closing connection to " + client);
74 chatServer.removeClient(client);
76 callback.onData(client, buffer, result);
78 client.run();
84 client.close();
85 chatServer.removeClient(client);