From: gjb@fig.citib.com (Greg Brail)
Subject: Re: Multiple DCE Servers with the same Interface
Date: 8 Jun 93 15:48:00 GMT [thread overview]
Message-ID: <C8B7w0.ELH@fig.citib.com> (raw)
In-Reply-To: C89Ivs.E0o@brunel.ac.uk
In article <C89Ivs.E0o@brunel.ac.uk> cs89bps@brunel.ac.uk (Barry P Sheward) writes:
> I want to be able to run several RPC servers using DCE which all have the same
> interface definition and consist of the same code, but which will provide
> different return data. Each server will be called with an argument, which
> decides which data that server returns.
>
> I think I can do this using manager object UUIDs in my rpc_ep_register function
> but I'm not sure exactly. I have looked at rpc_object_set_type but it seems
> that you need to have the manager uuid to create one.
At the offense of sounding obnoxious, it sounds like you want to use a
switch statement.
The rpc_object_set_type function is part of a mechanism to "switch
off" the code that implements each RPC function on the server side
based on UUID. It's possible to have a single server export the same
interface several times using different names in the DCE namespace,
and have the RPC runtime "decide" which function to call to execute
each RPC based on which name service entry the client used to find its
binding. It's also possible to have one big server which you run
multiple times, but which behaves differently despite exporting the
same RPC interface.
But this is designed so you can implement the same RPC functions (as
defined in IDL) with different code, much like a virtual function call
in C++. This isn't what you say you want, although it might be a nice
solution to your problem.
greg
--
Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com
next prev parent reply other threads:[~1993-06-08 15:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-07 17:50 Multiple DCE Servers with the same Interface Barry P Sheward
1993-06-08 15:48 ` Greg Brail [this message]
1993-06-10 13:47 ` Barry P Sheward
1993-06-15 9:56 ` Neil Winton
1993-06-15 12:11 ` Rich Salz
1993-06-16 14:05 ` DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Neil Winton
1993-06-16 18:29 ` Rich Salz
1993-06-17 16:42 ` Neil Winton
1993-06-18 21:02 ` Greg Brail
1993-06-21 12:38 ` Rich Salz
1993-06-22 21:45 ` Greg Brail
1993-06-23 18:59 ` Rich Salz
1993-06-24 15:14 ` Greg Brail
1993-06-10 0:00 ` Multiple DCE Servers with the same Interface Per Igel
1993-06-11 19:54 ` Examples of IDL unions Naved Khan
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