[zeromq-dev] ZMQ_STREAM and multipart messages
Laurent Alebarde
l.alebarde at free.fr
Mon Dec 30 19:20:32 CET 2013
So I answer to myself: yes.
Le 30/12/2013 18:02, Laurent Alebarde a écrit :
> Hi Devs,
>
> In *test_stream.cpp*, the ZMQ_SNDMORE flag is tested on receive with:
>
> rc = zmq_msg_recv (&identity, stream, 0);
> assert (rc > 0);
> assert (zmq_msg_more (&identity));
>
>
> and is set with:
>
> rc = zmq_msg_send (&identity, stream, ZMQ_SNDMORE);
>
>
> I note that *zmq_msg_recv* / *zmq_msg_send* are used with the identity
> where ZMQ_SNDMORE is set and tested, while for the message payload,
> *zmq_send* / *zmq_recv* are used, but used without multipart.
>
> So, my question is: Is it legitimate to use *zmq_send */*zmq_recv*
> with multipart messages, and then to use:
>
> rc = zmq_getsockopt (frontend, ZMQ_RCVMORE, &more, &moresz);
>
> ?
>
> In my test with streamq-proxy where I am testing now multipart
> messages, it fails, but I want to be sure from where the problem is.
>
> Cheers,
>
> Laurent
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131230/007273cd/attachment.htm>
More information about the zeromq-dev
mailing list