Re: zipped socket

2005-08-09 Thread Bryan Olson
[EMAIL PROTECTED] wrote: > As far as I know, there is not a prefabbed solution for this problem. One > issue that you must solve is the issue of buffering (when must some data you've > written to the compressor really go out to the other side) and the issue of > what to do when a read() or

Re: zipped socket

2005-08-08 Thread Peter Hansen
John wrote: > > Is there anyway open a socket so that every send/listen/recv > goes thru a zipping/unzipping process automatically? You ought to be able to do this easily by wrapping a bz2 compressor around the socket (maybe using socket.makefile() to return a file object first) and probably us

Re: zipped socket

2005-08-08 Thread jepler
As far as I know, there is not a prefabbed solution for this problem. One issue that you must solve is the issue of buffering (when must some data you've written to the compressor really go out to the other side) and the issue of what to do when a read() or recv() reads gzipped bytes but these do

zipped socket

2005-08-07 Thread John
Is there anyway open a socket so that every send/listen/recv goes thru a zipping/unzipping process automatically? Thanks, --j -- http://mail.python.org/mailman/listinfo/python-list