<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hendrik van Rooyen wrote:
<blockquote cite="mid:002a01c9e9da$1a476a40$0d00a8c0@Hendrik"
 type="cite">
  <pre wrap="">Ken Seehart  wrote:

8< ------------ implementation --------------

  </pre>
  <blockquote type="cite">
    <pre wrap="">The practical constraints of my specific application are:
1. The rpc server is a highly specialized slave system that does heavy duty
work.
    </pre>
  </blockquote>
  <blockquote type="cite">
    <pre wrap="">2. The rpc client is itself a web server that dispatches work requests to the
rpc server(s) and displays the >current status of work done so far.
    </pre>
  </blockquote>
  <blockquote type="cite">
    <pre wrap="">3. The generators will typically run for a long time (hours) and yield data 
periodically (perhaps once a minute).
    </pre>
  </blockquote>
  <pre wrap=""><!---->

If this "yield" can be made to be, or if it is, supply side driven, instead of
yielding on demand like a
generator, then I would set up a simple TCP/IP peer to peer socket link and just
send the result
back when it is ready.  If you have to "serve" more than one such link, it is a
simple matter
to keep a list of queues linking the different socket sets to the "generator",
and to iterate over
the list, putting a copy of the thing that was just produced into each queue.
  </pre>
</blockquote>
<blockquote cite="mid:002a01c9e9da$1a476a40$0d00a8c0@Hendrik"
 type="cite">
  <pre wrap="">Of course, the thing you want to pass back must be serializable.
  </pre>
</blockquote>
It is supply side driven, and the content would be serializable.  The
only reason I want something high<br>
level like xmlrpc or Pyro instead of rolling my own stuff with TCP/IP
is that I want the client and server to be<br>
easily customizable.<br>
<blockquote cite="mid:002a01c9e9da$1a476a40$0d00a8c0@Hendrik"
 type="cite">
  <pre wrap="">Have you looked at Pyro?
  </pre>
</blockquote>
Not yet.  Looking at it now.  Thanks, it looks like Pyro may be very
relevant.<br>
<br>
Ken<br>
<br>
</body>
</html>