[zeromq-dev] ROUTER-to-DEALER in C++

Pieter Hintjens ph at imatix.com
Wed Nov 14 13:39:05 CET 2012


Yes, I made changes to the examples for Ch3 and rewrote the whole
first part of that chapter because it was unclear. The C++ and other
translations haven't yet been updated. The changes were:

## 2012-11-09

* All "LRU" changed to "load-balancing" in comments.
* bstar: changed 'master' and 'slave' to 'active' and 'passive'.

## 2012-11-07

* identity.c: changed 'Hello' address to 'PEER2' to be more expressive.
* rtpapa.c: example deleted as it shows an invalid socket combination.
* rtmama.c: renamed to 'rtreq.c' for clarity.
* rtreq.c: mostly rewritten
* rtdealer.c: entirely rewritten

-Pieter

On Wed, Nov 14, 2012 at 9:14 PM, Ilja Golshtein <ilejncs at narod.ru> wrote:
> Hello Pieter,
>
> this is about http://zguide.zeromq.org/cpp:rtdealer
>
> You are right, everything is clear: 'A' and 'B' are identities here.
>
> The only issue with this example is it is not in line with explanation
> ("code is almost identical except that the worker uses a DEALER socket")
> and with C sample.
>
> Thanks.
>
> 14.11.2012, 14:41, "Pieter Hintjens" <ph at imatix.com>:
>> Hi Ilja,
>>
>> What example is this? The only way ROUTER can send to a DEALER without
>> first receiving a request from the DEALER is to use pre-shared
>> identities and to make some guestimate about when the DEALER has
>> connected.
>>
>> -Pieter
>>
>> On Wed, Nov 14, 2012 at 6:24 PM, Ilja Golshtein <ilejncs at narod.ru> wrote:
>>
>>>  Hello,
>>>
>>>  could someone please explain how
>>>  "ROUTER-to-DEALER in C++" actually works?
>>>  (I admit that yes, it works).
>>>
>>>  I am asking because DEALER does not send at all in this example,
>>>  so I do not understand where ROUTER gets identities from.
>>>
>>>  Thanks.
>>>
>>>  --
>>>  Best regards
>>>  Ilja Golshtein
>>>  _______________________________________________
>>>  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
>
> --
> Best regards
> Ilja Golshtein
> _______________________________________________
> 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