Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: rsalz@osf.org (Rich Salz)
Subject: Re: DCE Questions.
Date: 8 Feb 1994 17:04:21 GMT	[thread overview]
Message-ID: <2j8gml$fk1@paperboy.osf.org> (raw)
In-Reply-To: 2ijd6k$69t@news.tamu.edu

Some other folks have answered some of these questions, let me try to
give some additional info.

>1. Is it possible in DCE RPC to have one piece of code
>   act as both server and client? 

Yes, but there is one mildly tricky point.  Suppose the IDL file defines
an operation foo().  By default, both the client and server stubs will have
a routine named foo, but they do different things:  the auto-generated
client foo() makes the RPC call, while the server stub expects to call
the programmer-written foo() routine to do the real work.  Linking the
"cstub" file into your server will either get "ld: multiply defined" errors
at compile-time, or (most likely) infinite recursion at run-time.

Use end-point vectors.  Easiest thing to do is use the -no_mepv flag on
your IDL line.  Then you will have to define a global structure that
contains function pointers for your server's functions.  Use that global
in your rpc_register_if() call.  (This paragraph is probably too terse
and confusing; see the DCE docs.)

>2. Is it possible to have same server code running on
>   different processors/hosts?

Sure.  You can create an RPC group that contains the names of a set of
servers; the import call will pick one server from the group.

>3. Finally, can marshaling totally overruled by 'out_of_line'
>   attributes? Can it by substituted by some other user
>   defined packing?

out_of_line means that rather then doing the marshalling in the stub by
calling low-level routines directly, the IDL compiler generates "aux"
files that contain subroutines to marshall each data type.  So, out_of_line
won't do what you want.

You might like at the transmit_as attribute, or just pass your data as
a conformant array of bytes.
	/r$


  parent reply	other threads:[~1994-02-08 17:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-31 16:55 DCE Questions Shridhar R Muppidi
1994-02-01  9:42 ` Bernd Dreier
1994-02-01 12:45 ` Jon Mauney
1994-02-01 18:13   ` Ted W. Larson
     [not found]     ` <2itvfm$77t@ftn.ftn.us-ny.citicorp.com>
1994-02-06 12:33       ` Manfred Scheible
1994-02-03 21:46 ` Reilly F. Hayes
1994-02-09 16:23   ` Jamison H Abbott
1994-02-10 17:41     ` Seiichi Tatsukawa
1994-02-08 17:04 ` Rich Salz [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-10-21  5:22 Carl Hoang
1994-10-24 22:42 ` Gerry Palo
1994-10-26  0:18   ` Dr. James W. Hong
1994-01-20 13:32 Jaqui Lynch
1994-01-21 13:53 ` Mark Hickey
1994-01-21 14:23 ` Craig Weeks
1994-01-21 19:12 ` Wanda Monroe
1993-08-12 15:25 DCE questions Per Igel
1993-08-12 19:47 ` Rich Salz
1993-08-13 15:01 ` Greg Brail
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