From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,897502692464f25e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-08 18:46:21 PST Path: gmd.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!rutgers!rochester!news.crd.ge.com!sunblossom!knight.vf.ge.com!news.ge.com!psinntp!psinntp!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Newsgroups: comp.unix.osf.misc Subject: Re: Multiple DCE Servers with the same Interface Message-ID: Date: 8 Jun 93 15:48:00 GMT References: Sender: news@fig.citib.com Organization: Citibank IBISM In article 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