Home | History | Annotate | Download | only in chatserver

Lines Matching refs:Client

55     private final List<Client> connections = Collections.synchronizedList(new ArrayList<Client>());
127 * Creates a new client and adds it to the list of connections.
133 Client client = new Client(channel, new ClientReader(this, new NameReader(this)));
139 connections.add(client);
140 client.run();
148 * @param client the message source
151 public void writeMessageToClients(Client client, String message) {
153 for (Client clientConnection : connections) {
154 if (clientConnection != client) {
155 clientConnection.writeMessageFrom(client, message);
161 public void removeClient(Client client) {
162 connections.remove(client);