ConsoleServer.debugMsg("======================================================================",1);
ConsoleServer.debugMsg("Listening for connections on port " + server.getLocalPort(),1);
socket = server.accept();
socket.setSoTimeout(ProtocolConstants.SOCKET_TIMEOUT);
ConsoleServer.debugMsg("Connection established with " + socket.getInetAddress().getHostName(),1);
new AgentThread( processPool, daemonPool, showOutput, portNo, socket).start();
}
catch (Exception e) {
ConsoleServer.debugMsg("Error establishing socket connection:"+e.getMessage(),2);
}
}