Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: rsalz@osf.org (Rich Salz)
Subject: Re: Is string binding usable?  (Also serious DCE pricing flame)
Date: 16 Aug 1993 18:58:15 GMT	[thread overview]
Message-ID: <24olc7$7fn@paperboy.osf.org> (raw)
In-Reply-To: CB7BLp.7n0@sugar.NeoSoft.COM

In <CB7BLp.7n0@sugar.NeoSoft.COM> 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$


  parent reply	other threads:[~1993-08-16 18:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-03 14:45 Is string binding usable? (Also serious DCE pricing flame) Brad Daniels
1993-08-03 17:22 ` Rich Salz
1993-08-03 20:58   ` Brad Daniels
1993-08-09 22:04     ` bachmann
1993-08-10 13:59       ` Brad Daniels
1993-08-12 17:47         ` Dave Bachmann
1993-08-16 18:58     ` Rich Salz [this message]
1993-08-03 21:07 ` Walter Underwood
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