What is a uuid?

xiaoxiao2021-03-06  45

UUID stands for a Universal Unique IDentifier. These are 128 bit numbers assigned to any object within a DCE cell which is guaranteed to be unique. The mechanism used to guarantee that UUIDs are Unique is through combinations of hardware addresses, time stamps and random seeds.

There is a reference in the UUID to the hardware address of the first network card on the host which generated the UUID - this reference is intended to ensure the UUID will be unique in space as the MAC address of every network card is assigned by a single Global Authority and is Guaranteed to Be Unique (Alternate Addresses Might Be a Problem Here, But The Author Has NOT TESTED CREANG A UUID ON A MACHINE with AN Alternate Address Set)

The Next Component is a TimeStamp Which, AS DCE ALWAYS MOVES Clocks Forward, Will BE Unique In Time.

.

The TimeStamp Component Though Is One of the Reason Why Dce Does Not React Well to Clocks Going Backwards.

A uuid may be generated Using the uuidgen command

THIS HAS COME from a Machine with the Hardware Address Shown in The Output of The Command Below: - LSCFG -VL ENT0 Device Location Description Ent0 01-01 IBM ISA Ethernet Adapter Network Address ........... 00203035B29092 From this it may be observed That The Network Address of the Ethernet Adapter Matches The Last Portion of the UUID.

Application programmers may make their applications permanently identified with a UUID by creating their Interface Definition Language file with the uuidgen command, giving it the "-i" option. An example is given below. [Uuid ​​(5a389ad2-22dd-11d1-aa77-002035b29092 ), version (1.0)] interface INTERFACENAME {} The programmer would take this file, change the interfacename to one of their own devising then add the prototypes for the C functions they are going to implement over the network in their cell. [uuid ( 5a389ad2-22dd-11d1-aa77-002035b29092), version (1.0)] interface computron {error_t debit_account ([in] long account_number, [in] long amount, [in, out] long * balance); error_t credit_account ([in] Long Account_Number, [in] long amount, [in, out] long * balance);}

Would be an example of a more complete IDL file, which itself would be compiled into a useful form using the idl compiler, with the command idl computron.idl which would create object files which should be linked with the server and client programs to implement the Distributed Application.

转载请注明原文地址:https://www.9cbs.com/read-79794.html

New Post(0)