[zeromq-dev] fire up new subscribers

Pieter Hintjens ph at imatix.com
Wed Aug 8 13:38:37 CEST 2012

A PUB socket doesn't tell the app how many SUB sockets are connected.
You can do this using an XPUB socket and then each subscription set or
cleared on the SUB socket will appear on the XPUB socket. This is
(though I've not tried it) one way to know what's going on with

On Wed, Aug 8, 2012 at 7:53 PM, andrea crotti <andrea.crotti.0 at gmail.com> wrote:
> Suppose I have a publisher/subscriber model where the subscribers are
> many and can potentially run forever.
> I also want to be able to restart them though (or start new ones), but
> how do I know how many are actually alive in moment X?  Given a
> publisher socket, is there a way to know how many publishers are
> actively connected to that socket?
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list