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
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to