From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,a76d561a191ef0d4 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-08-16 12:03:32 PST Path: gmd.de!xlink.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.osf.misc Subject: Re: Is string binding usable? (Also serious DCE pricing flame) Date: 16 Aug 1993 18:58:15 GMT Organization: Open Software Foundation Message-ID: <24olc7$7fn@paperboy.osf.org> References: <23m6s7$jv3@paperboy.osf.org> NNTP-Posting-Host: sulphur.osf.org In daniels@NeoSoft.com (Brad Daniels) writes: >I'll give that a shot. I had gotten the impression that rpc_ep_resolve >required the directory service... Isn't the nameservice also part of the >directory service? I think you're confused. When a server comes up it gets protocols and creates ports. This combination, along with the host address, is called an endpoint. When a server registers itself with the namespace (i.e., CDS, usually by doing an rpc_ns_binding_export call) it is the endpoint that is put into the namespace. The port# is not put into the namespace because it is very dynamic. A server could, for example, export itself only when it is first installed. We don't recommend that, however: a server should export and unexport itself from the namespace at boot and shutdown time. Doing things this way means that your namespace accurately reflects what is going on. When you do an import, then, you get an endpoint but without the port#. To get the port# you must resolve the endpoint. This is what rpc_ep_resolve is used for. It contacts the host specified in the endpoint, and asks the rpcd there to "finish off" the endpoint, based on the interface and/or object UUID's that are given. The namespace is not at all involved. So, if you don't want to use the DCE namespace you have a couple of options. You could, as I said before, reserve some random port # and use that as a well-known endpoint. Or you could just put the host where your server is running into some config file and use the endpoint string routines to build your own unresolved binding handle. This is probably the easier choice. Of course, the best choice is one that uses all-DCE mechanisms. But sometimes other factors (like cost :) prevent this. Hope this helps. /r$