Ilja,

Multipart messages are handled in atomic manner. I.e. if you've got the
first part of the message all remaining parts are already available.
There's no need for further polling.

Martin

On 7/9/2010, "Ilja Golshtein" <[email protected]> wrote:

>Hello!
>
>Please confirm it is correct poll fires on receiver side only when all parts 
>of a multipart message are received.
>
>==
>Sender.cpp
>          s.send(part1, ZMQ_SNDMORE);
>          /* some time consuming work */
>          s.send(part2);
>
>Receiver.cpp
>         zmq_poll(...)
>         if (items[0].revents)
>         {
>                r.read(&part1);
>                r.read(&part2);
>         }
>==
>
>The question is if the design above is good from performance point of view,
>or Receiver should better come back to poll after part1 to be able to do 
>something usefull.
>
>Thanks.
>
>--
>Best regards,
>Ilja Golshtein.
>_______________________________________________
>zeromq-dev mailing list
>[email protected]
>http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to