// now connect the clients
List<IoFuture<IoSession>> cf = new ArrayList<IoFuture<IoSession>>();
for (int i = 0; i < CLIENT_COUNT; i++) {
cf.add(client.connect(new InetSocketAddress("localhost", port)));
}
Socket[] clientSockets = new Socket[CLIENT_COUNT];
for (int i = 0; i < CLIENT_COUNT; i++) {
clientSockets[i] = serverSocket.accept();