From 93529d8c5db599a45171942c4510f1b84ed09e6a Mon Sep 17 00:00:00 2001 From: Chuck Remes Date: Sun, 6 Nov 2011 14:03:51 +0100 Subject: Add zmq_getmsgopt to the API The new function allows to retrieve options (flags) from zmq_msg_t. Signed-off-by: Chuck Remes Renamed from zmq_msg_flags to zmq_getmsgopt Signed-off-by: Martin Sustrik --- include/zmq.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.3