[zeromq-dev] hi all, is it possible to subscribe a new subscription request when receiving data
Luca Boccassi
luca.boccassi at gmail.com
Thu Mar 9 13:41:38 CET 2017
On Thu, 2017-03-09 at 17:06 +0800, LN wrote:
> hi all:
>
>
> is it possible to subscribe a new subscription request(use setsockopt function) when receiving data from the publisher? because i want to change the subscription when the subscirbe receiving .
>
>
> could anyone give me some example? my code cause latency(data maybe late 1s from publisher to subscriber) , and i don't know how to do. Thanks!!!
Hi,
Yes, you can subscribe and unsubscribe at any time as the doc mentions
right at the top:
http://api.zeromq.org/4-2:zmq-setsockopt
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170309/084a8132/attachment.sig>
More information about the zeromq-dev
mailing list