From 0f891e091cc46775226ee1fe28784876395a7b92 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 9 Mar 2010 17:24:42 +0100 Subject: message flags from the wire are written to zmq_msg_t and vice versa --- src/zmq_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zmq_decoder.cpp') diff --git a/src/zmq_decoder.cpp b/src/zmq_decoder.cpp index 34bd618..c7e20e1 100644 --- a/src/zmq_decoder.cpp +++ b/src/zmq_decoder.cpp @@ -112,8 +112,8 @@ bool zmq::zmq_decoder_t::eight_byte_size_ready () bool zmq::zmq_decoder_t::flags_ready () { - // No flags are accepted at the moment. - zmq_assert (tmpbuf [0] == 0); + // Store the flags from the wire into the message structure. + in_progress.flags = tmpbuf [0]; if (prefix.empty ()) { next_step (zmq_msg_data (&in_progress), zmq_msg_size (&in_progress), -- cgit v1.2.3