[zeromq-dev] question about message buffer

Mohit Jaggi mohitjaggi at gmail.com
Mon Mar 11 00:39:06 CET 2013

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 <ph at imatix.com> wrote:

> On Thu, Mar 7, 2013 at 2:46 AM, Mohit Jaggi <mohitjaggi at gmail.com> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130310/8e7ca290/attachment.htm>

More information about the zeromq-dev mailing list