On Nov 16, 2011, at 10:22 AM, Pieter Hintjens wrote:

> On Wed, Nov 16, 2011 at 9:11 AM, Chuck Remes <cremes.devl...@mac.com> wrote:
> 
>> I need to uniquely identify the client for the life of the service. I assume 
>> the service could live for days, weeks or months (years seems a stretch). 
>> How would I choose a 32-bit integer independently from many hosts and avoid 
>> collisions?
> 
> In some cases the service can allocate the ID sequentially to new
> clients. (Not seeing anything of the protocol makes this discussion
> somewhat moot.)

Ah! Good idea!

This would require the Client portion of the protocol to include a READY-type 
message so it could be assigned an ID by the Broker. I'll look at this.

cr

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

Reply via email to