[Zope-dev] File/stream like Pdata class in Zope?

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 07 Jan 2002 11:27:02 +0000


On Fri, 04 Jan 2002 17:41:08 +0100, Niels Mache <mache@struktur.de>
wrote:

>I want to transmit the data of a (probably large) Pdata
>object (Zope module OSF/Image) over a=20
>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
tdickenson@geminidataloggers.com