Add metadata to received messages

This commit is contained in:
Martin Hurton
2014-04-30 14:17:38 +02:00
parent 62bb403eea
commit b9c2748146
12 changed files with 145 additions and 8 deletions

View File

@@ -780,6 +780,9 @@ int zmq::stream_engine_t::decode_and_push (msg_t *msg_)
if (mechanism->decode (msg_) == -1)
return -1;
metadata_t *metadata = mechanism->get_metadata ();
if (metadata)
msg_->set_properties (metadata);
if (session->push_msg (msg_) == -1) {
if (errno == EAGAIN)
write_msg = &stream_engine_t::push_one_then_decode_and_push;