}
}
}
if (sockets.isEmpty())
throw new ConnectionFailedException("Timed out trying to create control socket");
Iterator it = sockets.iterator();
controlSocket = (Socket) it.next();
it.remove();
try
{
controlOutputStream = controlSocket.getOutputStream();
}
catch (IOException e1)
{
throw new ConnectionFailedException("Unable to get control socket output stream");
}
log.debug("got control socket( " + listenerId + "): " + controlSocket);
pingTimerTask = new PingTimerTask(this);
synchronized (timerLock)