[zeromq-dev] How do I close one pair of a multiply-connected socket?

Chuck Remes cremes.devlist at mac.com
Mon Jul 25 17:59:32 CEST 2011

On Jul 25, 2011, at 10:14 AM, Kim Lester wrote:

> How however I have one situation where, for efficiency, I want to not-receive events from certain endpoints.
> I don't think zmq_subscribe/unsubscribe will work in my particular case. Besides that I suspect adding subscribe filter(s) would slow down performance slightly and anyway the unwanted packets will have already been received and partially processed, wasting CPU resources.

You probably want to take a look at the version 3.x releases. It includes publisher-side filtering which is what you want.

Using that functionality, you could then use zmq_subscribe/zmq_unsubscribe to only get the events during the time period you desire.


More information about the zeromq-dev mailing list