I understand, but the caller does not control if the message is stored in
VSM or on heap(since choice is made inside zmq code). So zmq has to somehow
copy the VSM before the message variable goes out of scope. Just want to
confirm that zmq does that.
Or is it not OK to use zmq_msg_t on stack and it should always be allocated
on heap?


On Wed, Mar 6, 2013 at 10:33 PM, Pieter Hintjens <[email protected]> wrote:

> On Thu, Mar 7, 2013 at 2:46 AM, Mohit Jaggi <[email protected]> wrote:
>
> > still trying to get to the bottom of this..appreciate any help.
> Especially
> > want to know how the VSM data is handled.
>
> The VSM data is a block of memory inside the zmq_msg_t structure, so
> usually allocated on the stack.
>
> -Pieter
> _______________________________________________
> 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