//getSocketExecutor().getXmlBlasterCore().
if (MethodName.CONNECT == receiver.getMethodName()) {
// TODO: crypt.importMessage(receiver.getQos()); see also ClientDispatchConnection.java:440
Socket socket = this.sock;
if (socket == null) return; // Is possible when EOF arrived inbetween
ConnectQosServer conQos = new ConnectQosServer(glob, receiver.getQos());
if (conQos.getSecurityQos() == null)
throw new XmlBlasterException(glob, ErrorCode.USER_SECURITY_AUTHENTICATION_ILLEGALARGUMENT, ME, "connect() without securityQos");
conQos.getSecurityQos().setClientIp (socket.getInetAddress().getHostAddress());
conQos.setAddressServer(getAddressServer());
Object callbackSocketDriver = new CallbackSocketDriver(conQos.getSessionName().getLoginName(), this);
conQos.getAddressServer().setCallbackDriver(callbackSocketDriver);
conQos.getData().getCurrentCallbackAddress().setCallbackDriver(callbackSocketDriver);
ConnectReturnQosServer retQos = getAuthenticateCore().connect(conQos);
this.secretSessionId = retQos.getSecretSessionId();
receiver.setSecretSessionId(retQos.getSecretSessionId()); // executeResponse needs it
executeResponse(receiver, retQos.toXml(), SocketUrl.SOCKET_TCP);
}