From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,369c0f37af7a51b X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-02-15 21:52:18 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!noc.near.net!das-news.harvard.edu!husc-news.harvard.edu!husc.harvard.edu!scunix2!jbaker Newsgroups: comp.unix.osf.misc Subject: Re: RPC Continuation Passing Message-ID: From: jbaker@scws7.harvard.edu (James Baker) Date: 15 Feb 94 21:52:18 References: <2958@dsinet> Organization: Harvard Arts and Sciences Computer Services, Cambridge, MA NNTP-Posting-Host: scws7.harvard.edu In-reply-to: gregd@jaws's message of 14 Feb 94 21:14:54 GMT In article <2958@dsinet> gregd@jaws (Gred Denton) writes: There was a recent question in the group concerning a process in the dual role of a client and server. What I would like to know is if a server could *completely* delegate its role as server to a third process. In other words, could process A make an RPC to process B which calls process C that actually does the return of A's RPC to B (and also returns B's RPC to it)? This would be a kind of "continuation passing" mechanism. You can certainly do this. (I have done it). It is somewhat inefficient if you pass pointers but definitely doable. Probably what you'd want to do to support this is to remap the entry point vector. I fear not, but I assume the passing of addresses is easily done: Process B could return A's RPC and then call process C with A's address and C could then call A (assuming A is an appropriate server). Is this assumption correct? Yes you can do this too. It's also much more efficient since you don't have your process B gatewaying every single request. One reason to choose either method is when you want a client serviced by a process, not a thread, and you need a loader to fork off this new server process. -- Jim