[zeromq-dev] Is there a way to remove all subscriptions from a SUB socket in one operation?
Doron Somech
somdoron at gmail.com
Fri Jan 4 20:35:22 CET 2019
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 <Martin.Belanger at dell.com wrote:
> 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
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190104/1ef7e7f8/attachment.htm>
More information about the zeromq-dev
mailing list