[Twisted-Python] idea for file transfers over PB
Paul Boehm
typo at soniq.net
Mon Jun 10 11:11:14 EDT 2002
On Mon, Jun 10, 2002 at 04:32:56PM +0200, Paul Boehm wrote:
> any arguments for/against this? feasible?
not really, as read can block.
what about this ?
class WrapFile(flavors.Referenceable):
def __init__(self, file):
self._file = file
def remote_read(self, *args, **kw):
return self._file.read(*args, **kw)
...
...
fd.callRemote('read', 512).addCallbacks(data_received, failure)
...
More information about the Twisted-Python
mailing list