From 842b4dd2e492459cbc0cc79ffdb34ddab8f0b528 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 27 Mar 2010 14:57:56 +0100 Subject: muti-part message functionality available via API --- src/socket_base.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/socket_base.cpp b/src/socket_base.cpp index f038dc9..40e0ccc 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -311,6 +311,11 @@ int zmq::socket_base_t::connect (const char *addr_) int zmq::socket_base_t::send (::zmq_msg_t *msg_, int flags_) { + // ZMQ_TBC is actually a message flag, not a real send-flag + // such as ZMQ_NOBLOCK. At this point we impose it on the message. + if (flags_ & ZMQ_TBC) + msg_->flags |= ZMQ_MSG_TBC; + // Process pending commands, if any. app_thread->process_commands (false, true); -- cgit v1.2.3