[zeromq-dev] Simple questions

Pieter Hintjens ph at imatix.com
Fri Apr 26 18:15:15 CEST 2013


On Fri, Apr 26, 2013 at 3:54 PM, Alexey Melnichuk <mimir at newmail.ru> wrote:

> I write Lua binding to ZeroMQ3.
> And i have 2 question:
> 1. Do i need close message after send/move.

No, you don't. It's not well documented though but _send takes
ownership, and _close isn't needed.

> Manual says:
> `The zmq_msg_t structure passed to zmq_msg_send() is nullified during the call`.
> But do that mean I have to call zmq_msg_close?
> 2. zmq_ctx_destroy in libzmq (3.3.0) marked as `Old (legacy) API`
> Manual has nothing about zmq_ctx_term.

We had used zmq_ctx_destroy for a while, then switched to zmq_ctx_term
because people felt the context wasn't destroyed, just terminated.
However the man pages still speak of "destroying the context", so we
need to fix that.

My fault about the man pages not mentioning zmq_ctx_term; I had
uploaded them from an old version. Fixing that right now.

-Pieter



More information about the zeromq-dev mailing list