From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,fe443c8707fa248c X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-05-15 11:46:12 PST Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!spool.mu.edu!torn!falcon.ccs.uwo.ca!csd.uwo.ca!jwkhong From: jwkhong@csd.uwo.ca (James W. Hong) Newsgroups: comp.unix.osf.misc Subject: Re: defining multiple interfaces in a server Date: 15 May 1994 18:46:12 GMT Organization: Dept. of Computer Science, University of Western Ontario Distribution: na Message-ID: <2r5qlk$sog@falcon.ccs.uwo.ca> References: <2qtlo3$qce@falcon.ccs.uwo.ca> <2qvu76$3og@paperboy.osf.org> NNTP-Posting-Host: mccarthy.csd.uwo.ca In article <2qvu76$3og@paperboy.osf.org>, Weidong Wang wrote: >In article <2qtlo3$qce@falcon.ccs.uwo.ca>, jwkhong@csd.uwo.ca (James W. Hong) writes: >|> This may be a dumb question but I was wondering if someone could tell me >|> how I can define multiple interfaces for a single server application. >|> Examples I have seen so far only allows a single interface to be defined. >|> I am currently using AIX DCE version 1.1. >|> > >Just do it. Just as how you set up your first interface (rpc_server_register_if, >inq_bindings, register_auth_info, rpc_ep_register, rpc_ns_binding_export, etc), >then before you call rpc_server)listen, set up another interface. Then set up >your third interface, .... After you are done with interfaces you want, finally >you call rpc_server_listen. > >Weidong Wang >DCE Systems Engineering, OSF Thanks for the suggestions. I found the bank example provided with the AIX DCE distribution quite helpful (somehow I missed that initially). The trick is to define interfaces in separate IDL files, compile them, and in the server initialization register the end points using the same binding vector and export the interfaces using the same entry name. James