[zeromq-dev] [Tech support] SUB socket filter with reverse logic

Luca Boccassi luca.boccassi at gmail.com
Thu May 31 10:40:54 CEST 2018

On Thu, 2018-05-31 at 13:43 +0530, Dev Aggarwal wrote:
> I know we can filter out the messages containing a keyword at the
> start of
> message, using -
> `zmq.setsocketopt(zmq.SUBSCRIBE, <keyword>)`
> But how do I use this in reverse logic i.e., how do I **exclude** all
> messages containing that keyword?

Check the ZMQ_INVERT_MATCHING socket option

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180531/6815d390/attachment.sig>

More information about the zeromq-dev mailing list