ZMQ_MSG_ROUTING_ID - Online Linux Manual Page
Section : 3
Updated : 01/21/2023
Source : 0MQ 4.3.4
Note : 0MQ Manual
NAMEzmq_msg_routing_id − return routing ID for message, if any
SYNOPSISuint32_t zmq_msg_routing_id (zmq_msg_t *message);
DESCRIPTIONThe zmq_msg_routing_id() function returns the routing ID for the message, if any. The routing ID is set on all messages received from a ZMQ_SERVER socket. To send a message to a ZMQ_SERVER socket you must set the routing ID of a connected ZMQ_CLIENT peer. Routing IDs are transient.
RETURN VALUEThe zmq_msg_routing_id() function shall return zero if there is no routing ID, otherwise it shall return an unsigned 32−bit integer greater than zero.
EXAMPLEReceiving a client message and routing ID. void *ctx = zmq_ctx_new ();
assert (ctx);
void *server = zmq_socket (ctx, ZMQ_SERVER);
assert (server);
int rc = zmq_bind (server, "tcp://127.0.0.1:8080");
assert (rc == 0);
zmq_msg_t message;
rc = zmq_msg_init (&message);
assert (rc == 0);
// Receive a message from socket
rc = zmq_msg_recv (server, &message, 0);
assert (rc != −1);
uint32_t routing_id = zmq_msg_routing_id (&message);
assert (routing_id);
SEE ALSOzmq_msg_set_routing_id(3)
AUTHORSThis page was written by the 0MQ community. To make a change please read the 0MQ Contribution Policy at http://www.zeromq.org/docs:contributing. 0
Johanes Gumabo
Data Size : 5,814 byte
man-zmq_msg_routing_id.3Build : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 1,209,385
Visitor ID : :
Visitor IP : 18.224.252.183 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.