summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xrep.cpp5
-rw-r--r--src/xreq.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index 7357967..1b6a536 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -70,26 +70,31 @@ int zmq::xrep_t::xsetsockopt (int option_, const void *optval_,
int zmq::xrep_t::xsend (zmq_msg_t *msg_, int flags_)
{
zmq_assert (false);
+ return -1;
}
int zmq::xrep_t::xflush ()
{
zmq_assert (false);
+ return -1;
}
int zmq::xrep_t::xrecv (zmq_msg_t *msg_, int flags_)
{
zmq_assert (false);
+ return -1;
}
bool zmq::xrep_t::xhas_in ()
{
zmq_assert (false);
+ return false;
}
bool zmq::xrep_t::xhas_out ()
{
zmq_assert (false);
+ return false;
}
diff --git a/src/xreq.cpp b/src/xreq.cpp
index b404779..d359dc0 100644
--- a/src/xreq.cpp
+++ b/src/xreq.cpp
@@ -70,26 +70,31 @@ int zmq::xreq_t::xsetsockopt (int option_, const void *optval_,
int zmq::xreq_t::xsend (zmq_msg_t *msg_, int flags_)
{
zmq_assert (false);
+ return -1;
}
int zmq::xreq_t::xflush ()
{
zmq_assert (false);
+ return -1;
}
int zmq::xreq_t::xrecv (zmq_msg_t *msg_, int flags_)
{
zmq_assert (false);
+ return -1;
}
bool zmq::xreq_t::xhas_in ()
{
zmq_assert (false);
+ return false;
}
bool zmq::xreq_t::xhas_out ()
{
zmq_assert (false);
+ return false;
}