Hi,
I can't seem to find out how to get the text description of a socket error progmatically.
For example, say I've got this code:
How would I then obtain a text description that describes errno?Code:
....
char buf[10];
int errno;
int retval = recv(sock, buf, 10, 0);
if (retval < 1) {
errno = WSAGetLastError();
}
....
I tried using strerror() which works correctly on *nix, but on Windows it just returns "No error"
Thanks in advance,
Daniel