ZMQ_MSG_SET_ROUTING_(3)
β¨ NAME β¨
zmq_msg_set_routing_id β bestie, this is the one that sets the routing ID property on a message π
πΈ SYNOPSIS πΈ
int zmq_msg_set_routing_id (zmq_msg_t *message, uint32_t routing_id);
π DESCRIPTION π
okay so. zmq_msg_set_routing_id()</p> does exactly one thing and it does it slayfully: it sets the routing_id you hand it, onto the message that the message argument is pointing at. no cap π«Ά
here's the tea though β that routing_id must be greater than zero. like, that's the whole vibe check. zero is not it, zero is an error, we'll get to that π
and where do you even get a valid routing ID, you ask? iconic question. you have to receive a message from a ZMQ_SERVER socket, and then use the zmq_msg_routing_id method to grab it. that's the only way in, periodt β¨
one more thing bestie, and it's important: routing IDs are transient. they do not stick around forever. don't be out here storing them in a little jar and expecting them to be valid later π
π₯ RETURN VALUE π₯
- returns zero if everything went off without a hitch β successful, we ate π
- otherwise it returns
-1and setserrnoto one of the values listed down below π
π ERRORS π
EINVALβ therouting_idyou provided is zero. that's it, that's the crime. zero is not greater than zero, so, yeah π
π¦ SEE ALSO π¦
π AUTHORS π
this page was written by the 0MQ community π and if you wanna make a change (yes you, bestie, you can), please read the 0MQ Contribution Policy at http://www.zeromq.org/docs:contributing π
and that's the whole page!! this little gem is from 0MQ 4.3.5, dated 10/09/2023 β 0MQ Manual energy all the way through, and the zmq_msg_set_routing_id_(3) header said hi and bye at the top and bottom πβ¨
π¦ where this page comes from
- epel 10: zeromq 4.3.5-18.el10_0 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms