> 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
endpoints:

http://zguide.zeromq.org/page:all#Getting-the-Message-Out

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.sylves...@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?
>
> Thanks,
> Lee
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to