summaryrefslogtreecommitdiff
path: root/src/err.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-22 11:52:35 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-22 11:52:35 +0200
commite136d923b7060ef64d44264f88e49057e6638f31 (patch)
tree695c496b8a016eb04967a52279ef1a0958cf3a51 /src/err.cpp
parentcc8136896d30890efb24aadc2d3058652aa43d45 (diff)
ZMQ-specific error codes added
Diffstat (limited to 'src/err.cpp')
-rw-r--r--src/err.cpp5
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" :