lib/socket-util.h
/* In Windows platform, errno is not set for socket calls.
 * The last error has to be gotten from WSAGetLastError(). */
In Windows platform, errno is not set for socket calls.
The last error has to be gotten from WSAGetLastError().
In Windows platform errno is not set for socket calls . The last error has to be gotten from WSAGetLastError () .
static inline int sock_errno(void)
{
#ifdef _WIN32
    return WSAGetLastError();
#else
    return errno;
#endif
}
static inline int sock_errno ( void ) { #ifdef _WIN32 return WSAGetLastError ( ) ; #else return errno ; #endif }
In Windows platform, errno is not set for socket calls.
In Windows platform errno is not set for socket calls .