On Wed, Dec 14, 2011 at 8:32 AM, Martin Sustrik <sust...@250bpm.com> wrote: > In theory we can add something like zmq_msg_add_ref() to get that > functionality. > > The question is whether more explicit reference management using > separate zmq_msg_t per reference doesn't lead to better coding style.
Hi, I would be hesitant to expose reference counting via the API as this is a very special case. Maybe we could rather have a send flag called ZMQ_DONTCLOSE or something similar so that message can be reused if necessary? -- Mikko Koppanen _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev