On Dec 1, 2010, at 2:57 PM, Praveen Baratam wrote:

> Hello All!
> 
> I was just reading the Advanced Stuff chapter of the guide and found the XREP 
> socket as a router pretty interesting.
> 
> I just need a clarification that is not found anywhere in the guide or else 
> where.
> 
> XREP(Router) uses the identity envelope to route the message to the correct 
> connected XREQ(Sink). What if there are more than one XREQs(Sinks) connected 
> with the same identity? Will the message be sent to all of them or only one 
> of them?
> 
> Thanks in advance!

Praveen,

it isn't valid for multiple sockets to share the same identity. Make sure each 
one is unique. I usually append a 6-digit random number to the end of all of my 
socket identities when I override the default identity.

cr


_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to