summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-03-27 14:50:35 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-03-27 14:50:35 +0100
commit8d8e0857be3d2ab941de443e436061ef82752c17 (patch)
treea49dc3d89876301b907ae2ecdc05f69acc9fc063
parent06538fc11790a0cf895c43d137a33febf97f3a28 (diff)
as advertised, zmq_flush and ZMQ_NOFLUSH were removed
-rw-r--r--include/zmq.h2
-rw-r--r--src/zmq.cpp6
2 files changed, 0 insertions, 8 deletions
diff --git a/include/zmq.h b/include/zmq.h
index 7d8d8ad..1d99254 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -181,7 +181,6 @@ ZMQ_EXPORT int zmq_term (void *context);
#define ZMQ_RCVBUF 12
#define ZMQ_NOBLOCK 1
-#define ZMQ_NOFLUSH 2
ZMQ_EXPORT void *zmq_socket (void *context, int type);
ZMQ_EXPORT int zmq_close (void *s);
@@ -190,7 +189,6 @@ ZMQ_EXPORT int zmq_setsockopt (void *s, int option, const void *optval,
ZMQ_EXPORT int zmq_bind (void *s, const char *addr);
ZMQ_EXPORT int zmq_connect (void *s, const char *addr);
ZMQ_EXPORT int zmq_send (void *s, zmq_msg_t *msg, int flags);
-ZMQ_EXPORT int zmq_flush (void *s);
ZMQ_EXPORT int zmq_recv (void *s, zmq_msg_t *msg, int flags);
////////////////////////////////////////////////////////////////////////////////
diff --git a/src/zmq.cpp b/src/zmq.cpp
index 80720ae..14898d5 100644
--- a/src/zmq.cpp
+++ b/src/zmq.cpp
@@ -313,12 +313,6 @@ int zmq_send (void *s_, zmq_msg_t *msg_, int flags_)
return (((zmq::socket_base_t*) s_)->send (msg_, flags_));
}
-int zmq_flush (void *s_)
-{
- errno = ENOTSUP;
- return -1;
-}
-
int zmq_recv (void *s_, zmq_msg_t *msg_, int flags_)
{
return (((zmq::socket_base_t*) s_)->recv (msg_, flags_));