On Wed, 16 Jan 2013 07:28:38 -0800, Peter Duniho
<> wrote, quoted or indirectly quoted
someone who said :
>> the UUID would be the port. The 16-bit port would just be an shorthand
>> abbreviation for it.
>
>We call that, in the programming community, a "hash code". It's not
>unique, and therefore not useful as an actual port ID.
A hash is different. The assignment process might work with a HashMap
or like a HashMap. If hashes collide you assign different 16 bit
numbers. It is a dynamic process. You don't always get the same 16
bit port from the same UUID.
If you are sure the port is reserved for you, you just use the 16 bit
version. If not, you ask for a port reservation (good for perhaps one
second) given the UUID. Then you use the 16 bit port. When you close
it, the reservation disappears.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development
time.
~ Tom Cargill Ninety-ninety Law