* RPC Continuation Passing
@ 1994-02-14 21:14 Gred Denton
1994-02-16 2:52 ` James Baker
1994-02-19 17:15 ` Eric W. Ziegenfus
0 siblings, 2 replies; 3+ messages in thread
From: Gred Denton @ 1994-02-14 21:14 UTC (permalink / raw)
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.
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RPC Continuation Passing
1994-02-14 21:14 RPC Continuation Passing Gred Denton
@ 1994-02-16 2:52 ` James Baker
1994-02-19 17:15 ` Eric W. Ziegenfus
1 sibling, 0 replies; 3+ messages in thread
From: James Baker @ 1994-02-16 2:52 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RPC Continuation Passing
1994-02-14 21:14 RPC Continuation Passing Gred Denton
1994-02-16 2:52 ` James Baker
@ 1994-02-19 17:15 ` Eric W. Ziegenfus
1 sibling, 0 replies; 3+ messages in thread
From: Eric W. Ziegenfus @ 1994-02-19 17:15 UTC (permalink / raw)
In <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.
>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?
I know this second option would work as that's how I just implemented a
RPC system. A known server would assign workers to do the work and return
results to a client who is waiting in server mode. The workers would register
themselves with the manager server and wait for work for it. It's not really
all that complex.
--
Eric W. Ziegenfus
ziegenfE@moravian.edu No matter where you go
Ain't no time 2 hate. there you are!
Te/vzemei un Bri/vi/bai Greatful Dead Buckaroo Bonzai
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-02-19 17:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-14 21:14 RPC Continuation Passing Gred Denton
1994-02-16 2:52 ` James Baker
1994-02-19 17:15 ` Eric W. Ziegenfus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox