[zeromq-dev] ZMQ_IDENTITY between UUIDs and 32-bit integers

Chuck Remes cremes.devlist at mac.com
Sat Nov 19 17:09:25 CET 2011

On Nov 19, 2011, at 9:01 AM, Amr Ali wrote:

> A 32bit takes 4 bytes of space. Now please elaborate on what exactly is in the
> range of 0-255, cause a 32bit value can take 4 bytes maximum!


An IDENTITY may be as few as 0 bytes or as many as 255 bytes. Four bytes is clearly within that range.

If you set your own explicit IDENTITY, you may choose one of any length from 0 to 255 bytes. If you do not set *your own* explicit IDENTITY, then the system will do it for you. It chooses an IDENTITY of length 4. What is so hard to understand about this?


More information about the zeromq-dev mailing list