[zeromq-dev] Simple questions

KIU Shueng Chuan nixchuan at gmail.com
Fri Sep 6 02:42:43 CEST 2013

Was looking at the following updated zmq_msg_close documentation:
"Note that this is NOT necessary after a successful _zmq_msg_send()_."

As a test, I tried calling zmq_msg_close() twice after a send.
The first returns 0 while the second returns -1.
This seems to imply that send does not fully invalidate the msg?

On Sat, Apr 27, 2013 at 6:46 PM, Pieter Hintjens <ph at imatix.com> wrote:

> On Sat, Apr 27, 2013 at 10:11 AM, Alexey Melnichuk <mimir at newmail.ru>
> wrote:
> > I expect this too. But is it documented behaviour or implementation
> detail?
> It's not documented properly but IMO it does not make sense that _send
> takes ownership and then the caller still has to call _close... I'll
> patch the documentation so this is clear.
> > And one more question.
> > Do i need call zmq_msg_init before copy/move?
> Yes, I guess you do.
> -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/20130906/8431a380/attachment.htm>

More information about the zeromq-dev mailing list