[zeromq-dev] Multi-part messages

Martin Lucina mato at kotelna.sk
Tue Apr 6 16:09:09 CEST 2010


sustrik at 250bpm.com said:
> 
> >> 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);
>      int more;
>      getsockopt (s, ZMQ_MORE, &more);
>      if (more) ...
> 
> In other words, to make "has more undelivered message parts" a property 
> of the receiving socket.

That just feels wrong...

-mato



More information about the zeromq-dev mailing list