[zeromq-dev] Non-contiguous message thoughts
Michael Santy
michael.santy at dynetics.com
Mon Mar 8 20:01:42 CET 2010
On 3/8/10 1:15 AM, "Martin Sustrik" <sustrik at 250bpm.com> wrote:
>
> Example of an application receiving messages consisting of two pieces:
>
> while (true) {
> zmq_recv (s, &msg1, 0);
> zmq_recv (s, &msg2, 0);
> process_it (msg1, msg2);
> }
So am I correct in assuming the application would have to know whether the
message is multi-part by parsing the message data? If so, I could see this
being a bit cumbersome. Does it make more sense to add a field to zmq_msg_t
to indicate whether the received message is the last of a group?
More information about the zeromq-dev
mailing list