[zeromq-dev] Fwd: Inverted PUB-SUB doesn't work

Gregg Irwin gregg at pointillistic.com
Thu Feb 5 20:31:49 CET 2015


Hi Rajalakshmi,

RI> I have only just subscribed to the zeromq-dev mailing list.

:) I mean in your code. You need to set the socket option with a
filter for what messages you want it to subscribe to. From
http://api.zeromq.org/4-1:zmq-socket:

> Initially a ZMQ_SUB socket is not subscribed to any messages, use
> the ZMQ_SUBSCRIBE option of zmq_setsockopt(3) to specify which
> messages to subscribe to.

-- Gregg




More information about the zeromq-dev mailing list