From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,3ac7914e080e9203 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-12-20 13:18:16 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!taco!adm!mauney From: mauney@adm.csc.ncsu.edu (Jon Mauney) Subject: Re: looking for "automatic binding" Message-ID: Sender: news@ncsu.edu (USENET News System) Organization: NCSU References: <1993Dec20.114953@cs.utwente.nl> Date: Mon, 20 Dec 1993 19:13:54 GMT 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"