* Autobinding in NCS using UUID as the handle
@ 1993-02-02 21:06 Kakumanu Kumar (Contractor)
1993-02-03 16:39 ` Jon Mauney
1993-02-03 19:02 ` Craig_Everhart
0 siblings, 2 replies; 3+ messages in thread
From: Kakumanu Kumar (Contractor) @ 1993-02-02 21:06 UTC (permalink / raw)
Hello folks,
I have some trouble understanding how UUID can be used as
a handle for RPC calls. As far as I know, a separate autobinding routine
is to be called to get a REAL handle for OUR handle (in our case, UUID).
My question is how does the client program know the UUID in the
first place to place a location broker call (using UUID as one of the
parameters for look up)?
Does the client_side programmer have to (manually) look it (UUID) up in the idl file,
then use in the autobinding routines to convert UUID from the UUID string
format to the UUID binary format and then make a location broker call
(within the autobinding routine itself) using binary rep of UUID as a parameter?
In short my question is how does the programmer know the text rep. of UUID
to use it in the autobinding routines to convert it to a real handle?
Since NCS is similar to DCE, this question might as well
be true with DCE.
Thanks ahead of time.
-Kumar Kakumanu
Today's Quote: No matter where you go, there you are!
#############################################################
#Kumar, Kakumanu Tel#:(Off)512-823-0241 (Res) 512-832-1362#
# INTERNET: kumark@netftp.austin.ibm.com #
# IBM-Internal: kumark@austin.ibm.com #
#Office Address: Home Address: #
#IBM, 11400 Burnett Rd, 8548, N. Lamar, Apt#3118 #
#Internal Zip 3901 Austin, TX-78753 #
#Bld# 815 #
#Austin, TX -78758 #
# FAX# 512-823-9892 #
#############################################################
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Autobinding in NCS using UUID as the handle
1993-02-02 21:06 Autobinding in NCS using UUID as the handle Kakumanu Kumar (Contractor)
@ 1993-02-03 16:39 ` Jon Mauney
1993-02-03 19:02 ` Craig_Everhart
1 sibling, 0 replies; 3+ messages in thread
From: Jon Mauney @ 1993-02-03 16:39 UTC (permalink / raw)
kumark@austin.ibm.com (Kakumanu Kumar (Contractor)) writes:
>Hello folks,
> I have some trouble understanding how UUID can be used as
>a handle for RPC calls. As far as I know, a separate autobinding routine
>is to be called to get a REAL handle for OUR handle (in our case, UUID).
You must eventually produce a binding handle in order to make the remote call,
but you have a couple of options other than what the NCS documentation
calls autobinding. You can do the binding once and put the resulting
binding handle into a global variable (implicit binding), or you
can make "your" handle be a regular binding handle, and again only
have to bind once per service host. "autobinding" is appropriate
if you want your application to use something sensible to the application
as a handle, and hide the translation to an rpc binding handle;
a UUID is probably not something that has meaning in the rest of
the application. Anyway...
>My question is how does the client program know the UUID in the
>first place to place a location broker call (using UUID as one of the
>parameters for look up)?
> Does the client_side programmer have to (manually) look it (UUID) up in the idl file,
>then use in the autobinding routines to convert UUID from the UUID string
>format to the UUID binary format and then make a location broker call
>(within the autobinding routine itself) using binary rep of UUID as a parameter?
>
>In short my question is how does the programmer know the text rep. of UUID
>to use it in the autobinding routines to convert it to a real handle?
The programmer can look in the IDL file, but there is no need.
The IDL compiler puts the UUID into the .h file it generates,
so you can simply pick up the correct variable and get it that way.
(This has the advantage of making it easy to change the UUID if necessary).
If you are going to call lb_$lookup_interface, simply pass it foo$if_spec.id
where foo is the name of the interface declared in idl.
Unless your application manipulates multiple objects with the same interface,
you can simply provide &uuid_$nil as the parameter to rpc_$bind.
> Since NCS is similar to DCE, this question might as well
>be true with DCE.
The situation in DCE is analogous, although all the names have
been changed to protect the innocent.
--
Jon Mauney
Mauney Computer Consulting
mauney@csc.ncsu.edu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Autobinding in NCS using UUID as the handle
1993-02-02 21:06 Autobinding in NCS using UUID as the handle Kakumanu Kumar (Contractor)
1993-02-03 16:39 ` Jon Mauney
@ 1993-02-03 19:02 ` Craig_Everhart
1 sibling, 0 replies; 3+ messages in thread
From: Craig_Everhart @ 1993-02-03 19:02 UTC (permalink / raw)
Well, the way it works for the DCE is that the client stubs (which are
generated from the IDL file) know the UUID and know how to call
``rpcd'', which serves the function of ``local location broker''.
Craig
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1993-02-03 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-02-02 21:06 Autobinding in NCS using UUID as the handle Kakumanu Kumar (Contractor)
1993-02-03 16:39 ` Jon Mauney
1993-02-03 19:02 ` Craig_Everhart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox