diff options
author | Chuck Remes <cremes@mac.com> | 2011-11-06 14:03:51 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-11-06 14:03:51 +0100 |
commit | 93529d8c5db599a45171942c4510f1b84ed09e6a (patch) | |
tree | 07ae1a6ff6f840eaa6ea1b2ffe8c76ce126f4237 /include | |
parent | bb66f3cc3bc2a76d10f16e1206f35480eb250a07 (diff) |
Add zmq_getmsgopt to the API
The new function allows to retrieve options (flags)
from zmq_msg_t.
Signed-off-by: Chuck Remes <cremes@mac.com>
Renamed from zmq_msg_flags to zmq_getmsgopt
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/zmq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h index 0263b43..ac350d3 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -139,6 +139,8 @@ ZMQ_EXPORT int zmq_msg_move (zmq_msg_t *dest, zmq_msg_t *src); ZMQ_EXPORT int zmq_msg_copy (zmq_msg_t *dest, zmq_msg_t *src); ZMQ_EXPORT void *zmq_msg_data (zmq_msg_t *msg); ZMQ_EXPORT size_t zmq_msg_size (zmq_msg_t *msg); +ZMQ_EXPORT int zmq_getmsgopt (zmq_msg_t *msg, int option, void *optval, + size_t *optvallen); /******************************************************************************/ /* 0MQ infrastructure (a.k.a. context) initialisation & termination. */ @@ -192,6 +194,9 @@ ZMQ_EXPORT int zmq_term (void *context); #define ZMQ_SNDTIMEO 28 #define ZMQ_IPV4ONLY 31 +/* Message options */ +#define ZMQ_MORE 1 + /* Send/recv options. */ #define ZMQ_DONTWAIT 1 #define ZMQ_SNDMORE 2 |