allow XSUB/XPUB to send/recv messages unrelated to sub/unsub (LIBZMQ-490)

zmq::xpub_t::xread_activated() – change to process messages without 0
or 1 prefix, but without affecting subscriptions

zmq::xsub_t::xsend() – change to send rather than discard messages
without 0 or 1 prefix, but without affecting subscriptions

Update documentation
This commit is contained in:
John Muehlhausen
2013-01-07 22:24:24 -06:00
parent 98a91e852e
commit d32e392278
3 changed files with 11 additions and 9 deletions

View File

@@ -74,6 +74,9 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
if (options.type == ZMQ_XPUB && (unique || (*data && verbose)))
pending.push_back (blob_t (data, size));
}
else /*process message unrelated to sub/unsub*/ {
pending.push_back (blob_t (data, size));
}
sub.close ();
}