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

2019-01-04 Thread Doron Somech
Best way is to destroy the current socket and re-create. You can also make a pull request to add this ability. On Fri, Jan 4, 2019, 21:28 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

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

2019-01-04 Thread Martin.Belanger
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