7
zmq_msg_init - initialise empty 0MQ message
12
*int zmq_msg_init (zmq_msg_t '*msg');*
17
The _zmq_msg_init()_ function shall initialise the message object referenced by
18
'msg' to represent an empty message. This function is most useful when called
19
before receiving a message with _zmq_recv()_.
21
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
22
_zmq_msg_ family of functions.
24
CAUTION: The functions _zmq_msg_init()_, _zmq_msg_init_data()_ and
25
_zmq_msg_init_size()_ are mutually exclusive. Never initialize the same
31
The _zmq_msg_init()_ function shall return zero if successful. Otherwise it
32
shall return `-1` and set 'errno' to one of the values defined below.
37
No errors are defined.
42
.Receiving a message from a socket
45
rc = zmq_msg_init (&msg);
47
rc = zmq_recv (socket, &msg, 0);
54
linkzmq:zmq_msg_init_size[3]
55
linkzmq:zmq_msg_init_data[3]
56
linkzmq:zmq_msg_close[3]
57
linkzmq:zmq_msg_data[3]
58
linkzmq:zmq_msg_size[3]
64
The 0MQ documentation was written by Martin Sustrik <sustrik@250bpm.com> and
65
Martin Lucina <martin@lucina.net>.