summaryrefslogtreecommitdiff
path: root/src/rep.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/rep.cpp
parentcc8136896d30890efb24aadc2d3058652aa43d45 (diff)
ZMQ-specific error codes added
Diffstat (limited to 'src/rep.cpp')
-rw-r--r--src/rep.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rep.cpp b/src/rep.cpp
index fcf8058..7ebbc6d 100644
--- a/src/rep.cpp
+++ b/src/rep.cpp
@@ -137,7 +137,7 @@ int zmq::rep_t::xsetsockopt (int option_, const void *optval_,
int zmq::rep_t::xsend (struct zmq_msg_t *msg_, int flags_)
{
if (!waiting_for_reply) {
- errno = EFAULT;
+ errno = EFSM;
return -1;
}
@@ -161,7 +161,7 @@ int zmq::rep_t::xsend (struct zmq_msg_t *msg_, int flags_)
int zmq::rep_t::xflush ()
{
- errno = EFAULT;
+ errno = ENOTSUP;
return -1;
}
@@ -171,7 +171,7 @@ int zmq::rep_t::xrecv (struct zmq_msg_t *msg_, int flags_)
zmq_msg_close (msg_);
if (waiting_for_reply) {
- errno = EFAULT;
+ errno = EFSM;
return -1;
}