diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-22 11:52:35 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-22 11:52:35 +0200 |
commit | e136d923b7060ef64d44264f88e49057e6638f31 (patch) | |
tree | 695c496b8a016eb04967a52279ef1a0958cf3a51 /src/req.cpp | |
parent | cc8136896d30890efb24aadc2d3058652aa43d45 (diff) |
ZMQ-specific error codes added
Diffstat (limited to 'src/req.cpp')
-rw-r--r-- | src/req.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/req.cpp b/src/req.cpp index 9b4dffa..3fd9b38 100644 --- a/src/req.cpp +++ b/src/req.cpp @@ -120,12 +120,12 @@ int zmq::req_t::xsend (struct zmq_msg_t *msg_, int flags_) // If we've sent a request and we still haven't got the reply, // we can't send another request. if (waiting_for_reply) { - errno = EFAULT; + errno = EFSM; return -1; } if (out_pipes.empty ()) { - errno = EFAULT; + errno = EAGAIN; return -1; } @@ -166,7 +166,7 @@ int zmq::req_t::xsend (struct zmq_msg_t *msg_, int flags_) int zmq::req_t::xflush () { - errno = EFAULT; + errno = ENOTSUP; return -1; } @@ -178,7 +178,7 @@ int zmq::req_t::xrecv (struct zmq_msg_t *msg_, int flags_) // If request wasn't send, we can't wait for reply. if (!waiting_for_reply) { zmq_msg_init (msg_); - errno = EFAULT; + errno = EFSM; return -1; } |