7
zmq_msg_close - release 0MQ message
12
*int zmq_msg_close (zmq_msg_t '*msg');*
17
The _zmq_msg_close()_ function shall inform the 0MQ infrastructure that any
18
resources associated with the message object referenced by 'msg' are no longer
19
required and may be released. Actual release of resources associated with the
20
message object shall be postponed by 0MQ until all users of the message or
21
underlying data buffer have indicated it is no longer required.
23
Applications should ensure that _zmq_msg_close()_ is called once a message is
24
no longer required, otherwise memory leaks may occur.
26
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
27
_zmq_msg_ family of functions.
32
The _zmq_msg_close()_ function shall return zero if successful. Otherwise
33
it shall return `-1` and set 'errno' to one of the values defined below.
38
No errors are defined.
43
linkzmq:zmq_msg_init[3]
44
linkzmq:zmq_msg_init_size[3]
45
linkzmq:zmq_msg_init_data[3]
46
linkzmq:zmq_msg_data[3]
47
linkzmq:zmq_msg_size[3]
53
The 0MQ documentation was written by Martin Sustrik <sustrik@250bpm.com> and
54
Martin Lucina <mato@kotelna.sk>.