[zeromq-dev] Many to many
whjackson at gmail.com
Sun Feb 17 06:18:28 CET 2013
> Is it possible for a sub socket to bind to multiple pub sockets?
Yes. You can call bind and/or connect on a socket as many times at you like.
> If so, where is there an example of this?
Here's an example from the guide where a pub socket is bound to multiple
If you connect a sub socket to multiple endpoints then it gets a message
whenever any of the publishers to which it's connected send.
On Sat, Feb 16, 2013 at 4:18 PM, Lee Sylvester <lee.sylvester at gmail.com>wrote:
> Hey guys,
> So, I want to do a many to many pubsub. I already have a discovery
> mechanism and logging, but what I need is for a service to bind to a pub
> socket and subscribe to a set list of instances of itself on the server and
> other servers. The Zyre framework, although awesome, seems a little large
> for my needs as I already have a number of the features it supplies built
> in to my framework. Is it possible for a sub socket to bind to multiple pub
> sockets? If so, where is there an example of this? Can I also add a pub
> socket to listen to when all is already running?
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev