Re: [Zope-dev] File/stream like Pdata class in Zope?
On Fri, 04 Jan 2002 17:41:08 +0100, Niels Mache [EMAIL PROTECTED] wrote: I want to transmit the data of a (probably large) Pdata object (Zope module OSF/Image) over a TCP/IP socket using sock.send(). I assume you mean *not* using http. Do you *need* that to be blocking? I thought I needed something similar at one time too, but the non-blocking options are probabnly better. If you want non-blocking, File objects use RESPONSE.write which is a good start for rolling your own implementation. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] File/stream like Pdata class in Zope?
I think you're going to need to roll your own here... I know of no wrapper class for pdata that makes it appear to be streamlike... Sorry, - C - Original Message - From: Niels Mache [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 11:41 AM Subject: [Zope-dev] File/stream like Pdata class in Zope? Hi, I want to transmit the data of a (probably large) Pdata object (Zope module OSF/Image) over a TCP/IP socket using sock.send(). Is there a stream-like wrapper class for Pdata in Zope? Any thoughts? Niels ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )