Example #1
0
const char *zmq::wsa_error()
{
    int no = WSAGetLastError ();
    //  TODO: This is not a generic way to handle this...
    if (no == WSAEWOULDBLOCK)
        return NULL;

    return wsa_error_no (no);
}
Example #2
0
const char *zmq::wsa_error()
{
    return wsa_error_no (WSAGetLastError(), NULL);
}