[Twisted-Python] idea for file transfers over PB

suggestion: transfer metainformation about file objects over PB, and create wrapper instances on the receiving end. so remotefile.read() executes on the remote perspective. any arguments for/against this? feasible? i'll struggle with the source a little, but i doubt my current python/twisted skills suffice to make this work. paul

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) ...
participants (1)
-
Paul Boehm