1ZMQ_MSG_CLOSE(3)                  0MQ Manual                  ZMQ_MSG_CLOSE(3)
2
3
4

NAME

6       zmq_msg_close - release 0MQ message
7

SYNOPSIS

9       int zmq_msg_close (zmq_msg_t *msg);
10

DESCRIPTION

12       The zmq_msg_close() function shall inform the 0MQ infrastructure that
13       any resources associated with the message object referenced by msg are
14       no longer required and may be released. Actual release of resources
15       associated with the message object shall be postponed by 0MQ until all
16       users of the message or underlying data buffer have indicated it is no
17       longer required.
18
19       Applications should ensure that zmq_msg_close() is called once a
20       message is no longer required, otherwise memory leaks may occur.
21
22           Caution
23           Never access zmq_msg_t members directly, instead always use the
24           zmq_msg family of functions.
25

RETURN VALUE

27       The zmq_msg_close() function shall return zero if successful. Otherwise
28       it shall return -1 and set errno to one of the values defined below.
29

ERRORS

31       No errors are defined.
32

SEE ALSO

34       zmq_msg_init(3) zmq_msg_init_size(3) zmq_msg_init_data(3)
35       zmq_msg_data(3) zmq_msg_size(3) zmq(7)
36

AUTHORS

38       This 0MQ manual page was written by Martin Sustrik
39       <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
40

NOTES

42        1. sustrik@250bpm.com
43           mailto:sustrik@250bpm.com
44
45        2. mato@kotelna.sk
46           mailto:mato@kotelna.sk
47
48
49
500MQ 2.1.4                         03/30/2011                  ZMQ_MSG_CLOSE(3)
Impressum