[zeromq-dev] Question about identities

Laurent Alebarde l.alebarde at free.fr
Tue Dec 10 11:38:33 CET 2013


I did read ZMTP 3 RFC23 several times, but it is not so obvious, even 
with the "Worked Example". In particular if two clients connect in the 
same time to a ROUTER server. As the identity is communicated in the 
metadata at the end of the handcheck, how the server distinguishes the 
two clients ? Is there some temporary identities ? If yes, on what is it 
built ?

Besides, setting an identity is an option. So a DEALER talking to a 
ROUTER SHALL set an arbitrary one. But it knows it talks to a ROUTER 
after having sent its identity. So it doesn't know it talks to a ROUTER 
when it sends its identity, and therefore, it can send an empty one.

I remain a bit confused.


Le 10/12/2013 10:17, Pieter Hintjens a écrit :
> Laurent, please read the ZMTP v3 protocol spec with regard to
> identities. A tells B, "this is my identity". B then uses that value
> to refer to A, IF AND ONLY IF B IS A ROUTER. More usually, A says "I
> have no identity" and B assigns an internal numeric identity.
>
> On Mon, Dec 9, 2013 at 3:59 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
>> Hi Devs,
>>
>> Are the identities of two different sockets on the same peer the same,
>> viewed by one single other peer ?
>>
>> Say:
>>
>> Node 1 ________________________________ Node 2
>>      Socket A1 (NULL)   <---------------------------------->     Socket A2
>> (NULL) : Node 1 has identity I1a
>>      Socket B1 (CURVE) <--------------------------------->    Socket B2
>> (CURVE) : Node 1 has identity I1b
>>
>> Is I1a == I1b ?
>>
>> Cheers,
>>
>>
>> Laurent
>>
>> _______________________________________________
>> 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/20131210/da551681/attachment.htm>


More information about the zeromq-dev mailing list