zmq_msg_set(3)

zmq_msg_set(3)

ØMQ Manual - ØMQ/4.2.0

Name

zmq_msg_set - set message property

Synopsis

int zmq_msg_set (zmq_msg_t *message, int property, int value);

Description

The zmq_msg_set() function shall set the property specified by the property argument to the value of the value argument for the ØMQ message fragment pointed to by the message argument.

Currently the zmq_msg_set() function does not support any property names.

Return value

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

Errors

EINVAL
The requested property property is unknown.

See also

zmq_msg_get(3) zmq(7)

Authors

This page was written by the ØMQ community. To make a change please read the ØMQ Contribution Policy at http://www.zeromq.org/docs:contributing.