[zeromq-dev] Fwd: Exact matching on subscription topics
Staffan Gimåker
staffan at spotify.com
Thu Jan 19 10:21:05 CET 2012
On Thu, Jan 19, 2012 at 1:52 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:
>
>
> Taking backward compatibility into account, I would propose following API:
>
> int filter = ZMQ_FILTER_EXACT;
> zmq_setsockopt (s, ZMQ_FILTER, &filter, sizeof (filter));
> zmq_setsockopt (s, ZMQ_SUBSCRIBE, "ABC", 3);
>
> The default value for ZMQ_FILTER option would be ZMQ_FILTER_PREFIX.
>
> Thoughts?
> Martin
>
Would changing ZMQ_FILTER affect only new subscriptions or would it apply
retroactively for old subscriptions as well?
/S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120119/6e2c3af5/attachment.htm>
More information about the zeromq-dev
mailing list