From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,607935dda9b15b31 X-Google-Attributes: gidf678f,public X-Google-Thread: 111308,607935dda9b15b31 X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1994-02-01 01:42:54 PST Xref: gmd.de comp.client-server:2350 comp.unix.osf.misc:941 Newsgroups: comp.client-server,comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!cs.utexas.edu!uunet!Germany.EU.net!netmbx.de!zib-berlin.de!news.rrz.uni-hamburg.de!news.dkrz.de!news.dfn.de!news.uni-augsburg.de!minsti01.MNWF.Uni-Augsburg.DE!benne From: benne@minsti01.MNWF.Uni-Augsburg.DE (Bernd Dreier) Subject: Re: DCE Questions. Message-ID: Sender: news@Yuri.CC.Uni-Augsburg.DE (The News Administrator) Nntp-Posting-Host: minsti01.mnwf.uni-augsburg.de Reply-To: Dreier@Uni-Augsburg.DE Organization: University of Augsburg (Bavaria) References: <2ijd6k$69t@news.tamu.edu> Date: Tue, 1 Feb 1994 09:42:54 GMT In article <2ijd6k$69t@news.tamu.edu>, muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: > Hello, > I have a few questions related to DCE RPC - would appreciate > if anybody could take some time and answer them. I'll post a > summary once I get all he answers. > > 1. Is it possible in DCE RPC to have one piece of code > act as both server and client? > Yes, no problem. Client & server are just theoretical terms to give an abstraction, that can be easily understood. You can have a client, which starts a new thread and this thread will act as a server. The other way round its possible, too. Think of the DCE core components itself. Almost every server of the core components is a client also. For example, the CDS proofs the identity of client via using security as a client. > 2. Is it possible to have same server code running on > different processors/hosts? A perfect example is a > parallel machine. Lets say that a client requires > service and contacts the CDS and gets the address of > the host providing the service. Now a different client > needs the same service - is it possible to provide the > same service on a different processor/host. If 'yes' how > does the CDS know about it and direct the new client to the > new host? > I'm not sure about what you're talking exactly. So, first it is also possible for the NEW client to use the same server as the older one. In addition to this you have no problem with starting the same service on a different processor or host. The selection, which server should be used, is done by the client. You have to make your client intelligent AND you have to make your new server registrated in CDS. The flow will now be: The second client comes to CDS and gets all addresses of servers, which provide the needed service. The client himself looks up, which of them he wants to use. > 3. Finally, can marshaling totally overruled by 'out_of_line' > attributes? Can it by substituted by some other user > defined packing? The "out_of_line" attribute can, as far as know, only be used on non-scalar types. Scalar types are marshalled anyway. Also this doesn't mean that you can use user defined packing. It have to be understood in the sense of out_of_line code, in opposite to the default in_line code for marshalling. So, what you gain is less code, what you loose is performance. > > Thanks a lot > -muppidi > (muppidi@cs.tamu.edu) Hope this helps! -- ++Benne, Bernd Dreier [Dreier@Uni-Augsburg.de]