Hi again,
I've just fixed it, by adding the following code at the server-side, right before sending the encrypted result.
int e = strlen(Enc_Message2);
char * enc_msg2 = new char[e+1];
strcpy(enc_msg2, Enc_Message2);
5 =clientSock->SendString(enc_msg2);
if (s5 != true) {
std::cout << clientSock->lastErrorText() << "\r\n";
return; }
best regards.