[zeromq-dev] Multi-part messages
sustrik at 250bpm.com
Mon Apr 5 16:21:09 CEST 2010
>> I think that this fulfills all your defined requirements nicely and can map
>> to OO-style language bindings also as msg.more().
> The main question here is how to access the functionality from
> individual languege bindings. Note that in most of them the message is a
> simple BLOB with no flags.
> On the send side ZMQ_MORE makes using it from any language easy. Not
> sure about recv side...
What about this:
zmq_recv (s, &msg, 0);
getsockopt (s, ZMQ_MORE, &more);
if (more) ...
In other words, to make "has more undelivered message parts" a property
of the receiving socket.
More information about the zeromq-dev