[zeromq-dev] zmq_msg_move

Pieter Hintjens ph at imatix.com
Wed Aug 1 07:40:37 CEST 2012


On Wed, Aug 1, 2012 at 10:10 AM, Andrew Hume <andrew at research.att.com> wrote:

> what is exactly the status of src after calling this function?
> the manual page says it becomes an empty message, whatever that is.
> do i need to call zmq_msg_close(src)?
> is it the same as calling zmq_msg_init(src)?

zmq_msg_init says it creates an empty message, i.e. a message of size
zero, so that seems consistent.

It's unclear whether you need to call zmq_msg_close on an empty
message. The reference manual doesn't discuss this. One would assume
it's not needed, but that may be dependent on how messages are
implemented.

-Pieter



More information about the zeromq-dev mailing list