Package twisted :: Package internet :: Module protocol :: Class FileWrapper
[show private | hide private]
[frames | no frames]

Class FileWrapper

Known Subclasses:
FakeTransport

A wrapper around a file-like object to make it behave as a Transport.

This doesn't actually stream the file to the attached protocol, and is thus useful mainly as a utility for debugging protocols.
Method Summary
  __init__(self, file)
  getHost(self)
  getPeer(self)
  handleException(self)
  loseConnection(self)
  pauseProducing(self)
  registerProducer(self, producer, streaming)
From abstract.FileDescriptor
  resumeProducing(self)
  stopConsuming(self)
  stopProducing(self)
  unregisterProducer(self)
  write(self, data)
  writeSequence(self, iovec)
  _checkProducer(self)

Class Variable Summary
Implements __implemented__ = <implementedBy twisted.internet.protoc...
_implementsTuple __implements__ = (<MetaInterface twisted.internet.interf...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
int closed = 0                                                                     
int disconnecting = 0                                                                     
NoneType producer = None                                                                  
int streamingProducer = 0                                                                     

Method Details

registerProducer(self, producer, streaming)

From abstract.FileDescriptor

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy twisted.internet.protocol.FileWrapper>                  

__implements__

Type:
_implementsTuple
Value:
(<MetaInterface twisted.internet.interfaces.ITransport>,)              

__providedBy__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0xb7b7bd2c>       

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0xb7b7bd2c>       

closed

Type:
int
Value:
0                                                                     

disconnecting

Type:
int
Value:
0                                                                     

producer

Type:
NoneType
Value:
None                                                                  

streamingProducer

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Mon Jul 25 16:22:12 2005 http://epydoc.sf.net