[zeromq-dev] reusing messages

Martin Sustrik sustrik at 250bpm.com
Mon Jan 10 16:22:56 CET 2011


Andew,

> just to be sure, though, will zeromq handle the contents correctly
> when it provided them? as in
>
> zmq_recv(isock, &msg, 0)
> zmq_msg_copy(&msg1, &msg);
> zmq_send(sock1, &msg);
> zmq_send(sock2, &msg1);
> zmq_msg_close(&msg);
> zmq_msg_close(&msg1);

Yes. That's correct.

Martin



More information about the zeromq-dev mailing list