Czmq uses a similar flag (REUSE) to allow multiple sends of a message.
Simple and leads to nice code.

- Pieter
On Dec 14, 2011 9:20 PM, "Mikko Koppanen" <[email protected]> wrote:

> On Wed, Dec 14, 2011 at 8:32 AM, Martin Sustrik <[email protected]>
> 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
> [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