On 07/24/2014 10:54 AM, mdavidsaver wrote:
> To do this should I use SOCK_EINVAL instead of EINVAL?
Since errlog uses strerror() to get the error string I think you have to
use EINVAL, which Microsoft supports at least back to MSVS-2003. I don't
know whether strerror() can handle WSAEINVAL, they don't say.
> FYI I think I can get by with only EINVAL and EWOULDBLOCK.
EWOULDBLOCK is listed in the MS documentation as supported by MSVS-2010
so that's fine too.
On 07/24/2014 10:54 AM, mdavidsaver wrote:
> To do this should I use SOCK_EINVAL instead of EINVAL?
Since errlog uses strerror() to get the error string I think you have to
use EINVAL, which Microsoft supports at least back to MSVS-2003. I don't
know whether strerror() can handle WSAEINVAL, they don't say.
> FYI I think I can get by with only EINVAL and EWOULDBLOCK.
EWOULDBLOCK is listed in the MS documentation as supported by MSVS-2010
so that's fine too.