I have tested the message before i sent it to see if its correct and the length, it seems fine but when i check it on the server prog its not even the same length, let alone readable.
This is the code im using to send the message (normal plain text) from the client
Expand|Select|Wrap|Line Numbers
- char buffer[256];
- ZeroMemory(buffer, 256);
- strcpy(buffer, ("This is the message"));
- nret = send(theSocket, buffer, strlen(buffer), 0);
Expand|Select|Wrap|Line Numbers
- char buffer[256];
- int p;
- nret = recv(listeningSocket, buffer, p, 0);