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 <[email protected]> wrote:

> On Sat, Apr 27, 2013 at 10:11 AM, Alexey Melnichuk <[email protected]>
> 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
> [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