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

NAME

6       zmq_msg_move - move content of a message to another message
7

SYNOPSIS

9       int zmq_msg_move (zmq_msg_t *dest, zmq_msg_t *src);
10

DESCRIPTION

12       The zmq_msg_move() function shall move the content of the message
13       object referenced by src to the message object referenced by dest. No
14       actual copying of message content is performed, dest is simply updated
15       to reference the new content. src becomes an empty message after
16       calling zmq_msg_move(). The original content of dest, if any, shall be
17       released.
18
19           Caution
20           Never access zmq_msg_t members directly, instead always use the
21           zmq_msg family of functions.
22

RETURN VALUE

24       The zmq_msg_move() function shall return zero if successful. Otherwise
25       it shall return -1 and set errno to one of the values defined below.
26

ERRORS

28       EFAULT
29           Invalid message.
30

SEE ALSO

32       zmq_msg_copy(3) zmq_msg_init(3) zmq_msg_init_size(3)
33       zmq_msg_init_buffer(3) zmq_msg_init_data(3) zmq_msg_close(3) zmq(7)
34

AUTHORS

36       This page was written by the 0MQ community. To make a change please
37       read the 0MQ Contribution Policy at
38       http://www.zeromq.org/docs:contributing.
39
40
41
420MQ 4.3.4                         07/22/2023                   ZMQ_MSG_MOVE(3)
Impressum