Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: mauney@adm.csc.ncsu.edu (Jon Mauney)
Subject: Re: looking for "automatic binding"
Date: Mon, 20 Dec 1993 19:13:54 GMT	[thread overview]
Message-ID: <mauney.756414834@adm> (raw)
In-Reply-To: 1993Dec20.114953@cs.utwente.nl

kremer@cs.utwente.nl (Harro Kremer) writes:

>--

>In one of the message in this newsgroup in november, I came across the term
>automatic binding. To quote:

>"In some cases, clients that use autobinding can survive this [the loss of a
>connection to a server, HK] without noticing as the RPC runtime can cantch the
>exception and automatically find a new binding.

>My questions are: 

>1) Is this facility present in DCE 1.0? If so, where in the documentation can
>   this be found?

Yes. If you have the DCE 1.0.2 Application Development Guide, you'll
find the answer on page 18-5.  The auto_handle attribute is part of
the ACF, so it is explained in the ACF chapter.  It is also discussed
in the RPC chapter, look at section 13.5 "Methods for Managing Bindings"
The standard RPC examples usually include automatic binding examples.
The two examples in Shirley's "Guide to Writing DCE Applications"
appendices C and D use automatic binding.

>2) How do I select autobinding or if it is default, how do I unselect it?

If a procedure doesn't have a binding handle as a parameter, and if
there is no explicit binding attribute in the ACF, then auto_handle
will be taken as default.  You should get a message from the IDL
compiler in this case.  You can apply auto_handle to any interface
through the ACF.  You can apply explicit_handle or implicit_handle
attribute to avoid automatic binding.

>3) Is there inference between autobinding and the regular binding between a
>   client and a server where the client explicitly needs to pick a server from
>a
>   list of servers offering a service.

If you use automatic binding, the system will pick, effectively at random,
from the available servers, using your RPC_DEFAULT_ENTRY environment variable
as a starting point.  You get no control over which server you connect to.
But then, you don't have to write any code to do the binding, either.
-- 
Jon Mauney 			 mauney@csc.ncsu.edu
Mauney Computer Consulting	 (919) 828-8053

	"Have TGT, will travel"


      parent reply	other threads:[~1993-12-20 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-12-20 10:49 looking for "automatic binding" Harro Kremer
1993-12-20 17:41 ` Mark Hickey
1993-12-20 19:13 ` Jon Mauney [this message]
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