[zeromq-dev] How one can benefit from having bound on multiple addresses?

Pieter Hintjens ph at imatix.com
Tue Sep 24 14:11:37 CEST 2013

The number of times you bind isn't relevant. Each bind allows peers to
connect. The number of connections (on a single endpoint or multiple
endpoints) affects how the socket pattern works. PUSH/DEALER will
rotate messages out. PUB does multicast. SUB/PULL/DEALER rotates
messages in. ROUTER rotates in, and uses addressed output. PAIR always
sends to its unique peer, if any.


On Tue, Sep 24, 2013 at 1:40 PM, Artem Vysochyn
<artem.vysochyn at gmail.com> wrote:
> I was reading a guide, it says you can take single socket and connect it to
> multiple addresses, and bind to multiple addresses. While this is, without
> doubts, really cool, guide doesn't show much details on how one can benefit
> from being bound on multiple addresses. That's why I'm asking community,
> i.e. you.
> My question: if I bind socket to multiple addresses, how then
> .send()/.recv() will behave depending on socket type?
> Thanks in advance.
> _______________________________________________
> 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