From: gjb@fig.citib.com (Greg Brail)
Subject: Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
Date: Fri, 18 Jun 1993 21:02:44 GMT [thread overview]
Message-ID: <C8u54K.Ioq@fig.citib.com> (raw)
In-Reply-To: 1vq6u7$nsu@zaphod.axion.bt.co.uk
In article <1vq6u7$nsu@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes:
>Yes, this is great and useful. But ... there still seems to be no need to have
>both Type and Object UUIDs. An EPV is associated with a Type UUID. The same EPV
>can be associated with multiple Type UUIDs. A Type UUID is associated with
>(potentially) multiple Object UUIDs. An RPC endpoint is associated with a list
>of Object UUIDs.
I'll admit that it confused me as well. However, I think it makes
sense.
An object UUID refers to one and only one object -- namely, an RPC
server. When you export an RPC interface from a server, it's a good
idea to use an object UUID. Otherwise if you export the same interface
from several different server programs on the same machine, the rpc
endpoint mapper (rpcd) can't tell them apart. Thus, every server
should register with a unique object UUID, which means it should
generate a new one by using uuid_create each time it runs.
The type UUID helps the server distinguish which EPV to use when
dispatching each RPC call. Generally, each server program will only
have a few "types." Even if the program creates and destroys types on
the fly, each type ought to have a unique type UUID. It would make
sense to generate the uuids using "uuidgen -s" and hardcode them in
the code for each type. That way all the instances of the program that
implements each type will use the same type UUID.
Or at least that's how I'd do it. And if type UUIDs are hardcoded and
object UUIDs are generated at runtime, then type UUIDs and object
UUIDs can't be the same thing. And besides, I think the distinction
makes sense. An interface UUID identifies an interface. A type UUID
identifies an implementation of that interrface. A null type UUID
identifies the default implementation. An object UUID identifies one
and only one instance of an implementation of an interface.
greg
--
Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com
next prev parent reply other threads:[~1993-06-18 21:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-07 17:50 Multiple DCE Servers with the same Interface Barry P Sheward
1993-06-08 15:48 ` Greg Brail
1993-06-10 13:47 ` Barry P Sheward
1993-06-15 9:56 ` Neil Winton
1993-06-15 12:11 ` Rich Salz
1993-06-16 14:05 ` DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Neil Winton
1993-06-16 18:29 ` Rich Salz
1993-06-17 16:42 ` Neil Winton
1993-06-18 21:02 ` Greg Brail [this message]
1993-06-21 12:38 ` Rich Salz
1993-06-22 21:45 ` Greg Brail
1993-06-23 18:59 ` Rich Salz
1993-06-24 15:14 ` Greg Brail
1993-06-10 0:00 ` Multiple DCE Servers with the same Interface Per Igel
1993-06-11 19:54 ` Examples of IDL unions Naved Khan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox