log.debug("New socket created.");
socket = new Socket(config.serverAddress, config.serverPort);
socket.setKeepAlive(true);
this.sockets.put(handler, socket);
}
final CMPSendTCP send = new CMPSendTCP( message, socket, doClose );
final boolean isServerClose = (send.flags&1)>0;
if ( isServerClose ) {
removeSocket(handler);
}
return new ServerResult( send.response, isServerClose );