diff options
Diffstat (limited to 'src/err.cpp')
| -rw-r--r-- | src/err.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/src/err.cpp b/src/err.cpp index bca0c03..ef5b987 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -24,11 +24,16 @@  const char *zmq::wsa_error()  { + +      int errcode = WSAGetLastError ();      //  TODO: This is not a generic way to handle this...      if (errcode == WSAEWOULDBLOCK)          return NULL; +    //  TODO:  It seems that list of Windows socket errors is longer than this. +    //         Investigate whether there's a way to convert it into the string +    //         automatically (wsaError->HRESULT->string?).      return          (errcode == WSABASEERR) ?              "No Error" :   | 
