ZMQ\_MSG\_SET(3) 0MQ Manual ZMQ\_MSG\_SET(3)

# [NAME](#NAME)

zmq\_msg\_set - set message property

# [SYNOPSIS](#SYNOPSIS)

**int zmq\_msg\_set (zmq\_msg\_t \*message, int property, int value);**

# [DESCRIPTION](#DESCRIPTION)

The *zmq\_msg\_set()* function shall set the property specified by the *property* argument to the value of the *value* argument for the 0MQ message fragment pointed to by the *message* argument.

Currently the *zmq\_msg\_set()* function does not support any property names.

# [RETURN VALUE](#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](#ERRORS)

**EINVAL**

The requested property *property* is unknown.

# [SEE ALSO](#SEE_ALSO)

[**zmq\_msg\_get**(3)](/man/os/zeromq/zmq_msg_get.3) [**zmq**(7)](/man/os/zeromq/zmq.7)

# [AUTHORS](#AUTHORS)

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

10/26/2026 0MQ 4.3.5

---

Document: zmq_msg_set(3) from zeromq 4.3.5-r15 (Chainguard OS)
Source: https://github.com/zeromq/libzmq
