[zeromq-dev] Is there a way to remove all subscriptions from a SUB socket in one operation?

Martin.Belanger at dell.com Martin.Belanger at dell.com
Fri Jan 4 20:26:28 CET 2019


Hi,

Let's say I've made several subscriptions using zmq_setsockopt(sock,  ZMQ_SUBSCRIBE, ...) and later I want to remove all these subscriptions. 

I know I can remove each subscription by successively invoking zmq_setsockopt(sock, ZMQ_UNSUBSCRIBE, ...), but I was just wondering if there was a quick way to remove all subscriptions with one zmq call? 

Thanks,
Martin 




More information about the zeromq-dev mailing list