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. Note
21       that this is NOT necessary after a successful zmq_msg_send().
22
23           Caution
24           Never access zmq_msg_t members directly, instead always use the
25           zmq_msg family of functions.
26

RETURN VALUE

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

ERRORS

32       EFAULT
33           Invalid message.
34

SEE ALSO

36       zmq_msg_init(3) zmq_msg_init_size(3) zmq_msg_init_buffer(3)
37       zmq_msg_init_data(3) zmq_msg_data(3) zmq_msg_size(3) zmq(7)
38

AUTHORS

40       This page was written by the 0MQ community. To make a change please
41       read the 0MQ Contribution Policy at
42       http://www.zeromq.org/docs:contributing.
43
44
45
460MQ 4.3.4                         07/23/2022                  ZMQ_MSG_CLOSE(3)
Impressum