From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,897502692464f25e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-18 16:06:33 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!udel!news.intercon.com!psinntp!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Subject: Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Message-ID: Sender: news@fig.citib.com Organization: Citibank IBISM References: <1vk6bj$ooi@zaphod.axion.bt.co.uk> <1vn9bo$ce7@zaphod.axion.bt.co.uk> <1vnoq1$82t@paperboy.osf.org> <1vq6u7$nsu@zaphod.axion.bt.co.uk> Date: Fri, 18 Jun 1993 21:02:44 GMT 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