---
name: "zmq_msg_set"
section: "3"
platform: "linux"
package: "zeromq"
version: "4.3.5-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zmq_msg_set"
---

# zmq\_msg\_set(3)

set message property

## 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 0MQ 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_msg_get/3.md) [**zmq**(7)](/zmq/7.md)

## 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**.
