• Pontus Sköldström's avatar
    Support application metadata through ZMQ_METADATA · dd5eec35
    Pontus Sköldström authored
    Lets the application set per-connection metadata.
    Metadata is specified as "X-key:value" and set using zmq_setsockopt, eg:
    zmq_setsockopt (s, ZMQ_METADATA, "X-key:value", 11);
    
    The peer can then obtain the metadata from a received message:
    char *data = zmq_msg_gets(msg, "X-key");
    dd5eec35
test_address_tipc.cpp 4.04 KB