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.
-Pieter On Tue, Sep 24, 2013 at 1:40 PM, Artem Vysochyn <[email protected]> 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 > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
