<!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">
I've looked at pyro, and it is definitely overkill for what I need.<br>
<br>
If I was requiring some kind of persistent state for objects shared
between processes, pyro would be awesome...but I just need to transfer
chunks of complex python data back and forth. No method calls or
keeping state in sync.<br>
<br>
I don't find socket code particularly nasty, especially through a
higher-level module like asyncore/asynchat.<br>
-Dave<br>
<br>
Irmen de Jong wrote:
<blockquote cite="mid452fd460$0$4526$e4fe514c@news.xs4all.nl"
 type="cite">
  <pre wrap="">David Hirschfield wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have a pair of programs which trade python data back and forth by 
pickling up lists of objects on one side (using 
pickle.HIGHEST_PROTOCOL), and sending that data over a TCP socket 
connection to the receiver, who unpickles the data and uses it.

So far this has been working fine, but I now need a way of separating 
multiple chunks of pickled binary data in the stream being sent back and 
forth.
    </pre>
  </blockquote>
  <pre wrap=""><!---->[...]

Save yourself the trouble of implementing some sort of IPC mechanism
over sockets, and give Pyro a swing: <a class="moz-txt-link-freetext" href="http://pyro.sourceforge.net">http://pyro.sourceforge.net</a>

In Pyro almost all of the nastyness that is usually associated with socket
programming is shielded from you and you'll get much more as well
(a complete pythonic IPC library).

It may be a bit heavy for what you are trying to do but it may
be the right choice to avoid troubles later when your requirements
get more complex and/or you discover problems with your networking code.

Hth,
---Irmen de Jong
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Presenting:
mediocre nebula.
</pre>
</body>
</html>