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

Artem Vysochyn artem.vysochyn at gmail.com
Tue Sep 24 15:40:24 CEST 2013


Thanks for reply, Pieter. Understood.


2013/9/24 Pieter Hintjens <ph at imatix.com>

> 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
> <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
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130924/ad3d89b6/attachment.htm>


More information about the zeromq-dev mailing list