[zeromq-dev] DEALER<->DEALER, do both ends connect?

Benson Margulies benson at dchbk.us
Wed Apr 1 19:13:57 CEST 2015


On Wed, Apr 1, 2015 at 12:40 PM, Pieter Hintjens <ph at imatix.com> wrote:
> One end binds, one end connects. If you do both, it will partially
> work, and create two pipes between the sockets, that is, two TCP
> connections. The results will be weird. You'll get messages swapping
> order randomly. Connect one, bind the other, and it'll work as you
> expect.

OK, that's what I observed, thanks.

>
> -Pieter
>
> On Wed, Apr 1, 2015 at 7:39 AM, Leonard Michelet
> <leonard.michelet at openwide.fr> wrote:
>> I am using a DEALER-DEALER connection binding one, connecting the other. And it works fine.
>> In the ZeroMQ guide, there is a section about DEALER-DEALER connection, saying it's useful for full async communication as long as there is only 2 sockets communicating.
>> That's how I use it.
>>
>> ----- Mail original -----
>>> De: "Benson Margulies" <bimargulies at gmail.com>
>>> À: zeromq-dev at lists.zeromq.org
>>> Envoyé: Mercredi 1 Avril 2015 01:50:58
>>> Objet: [zeromq-dev] DEALER<->DEALER, do both ends connect?
>>>
>>> I am arranging bidirectional async traffic by connecting two DEALERS.
>>>
>>> I convinced myself that each end needed to both bind and connect.
>>>
>>> Is this excessive? Can it break something?
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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