hi, is it possible for the recv socket call's buffer to not match the number of bytes returned by the call? for example:
const int len = 1024; char buf[len]; int bytes = recv(socket, buf, len, 0);
shouldn't this always be true: strlen(buf) = bytes?
thanks
edit1:
i should note that i'm aware that recv can return less than the allocated size of the buffer. i'm trying to measure the amount of bytes in the buffer after the recv call. this is not a binary msg. thanks.