Package twisted :: Package internet :: Module base :: Class BasePort
[show private | hide private]
[frames | no frames]

Type BasePort

 Ephemeral --+    
             |    
    Logger --+    
             |    
    object --+    
             |    
FileDescriptor --+
                 |
                BasePort

Known Subclasses:
Port

Basic implementation of a ListeningPort.

Note: This does not actually implement IListeningPort.
Method Summary
  createInternetSocket(self)
  doWrite(self)
Raises a RuntimeError
    Inherited from FileDescriptor
  __init__(self, reactor)
  connectionLost(self, reason)
The connection was lost.
  doRead(self)
Called when data is avaliable for reading.
  fileno(self)
File Descriptor number for select().
  loseConnection(self, _connDone)
Close the connection at the next available opportunity.
  loseWriteConnection(self)
  pauseProducing(self)
  readConnectionLost(self, reason)
  registerProducer(self, producer, streaming)
Register to receive data from a producer.
  resumeProducing(self)
  startReading(self)
Start waiting for read availability.
  startWriting(self)
Start waiting for write availability.
  stopConsuming(self)
Stop consuming data.
  stopProducing(self)
  stopReading(self)
Stop waiting for read availability.
  stopWriting(self)
Stop waiting for write availability.
  unregisterProducer(self)
Stop consuming data from a producer, without disconnecting.
  write(self, data)
Reliably write some data.
  writeConnectionLost(self, reason)
  writeSequence(self, iovec)
Reliably write a sequence of data.
  writeSomeData(self, data)
Write as much as possible of the given data, immediately.
  _closeWriteConnection(self)
  _postLoseConnection(self)
Called after a loseConnection(), when all data has been written.
    Inherited from Logger
  logPrefix(self)
Override this method to insert custom logging behavior.
    Inherited from Ephemeral
  __getstate__(self)
  __setstate__(self, state)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
Implements __implemented__ = <implementedBy twisted.internet.base.B...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
NoneType addressFamily = None                                                                  
NoneType socketType = None                                                                  
    Inherited from FileDescriptor
int bufferSize = 65536                                                                 
int connected = 0                                                                     
str dataBuffer = ''
int disconnected = 0                                                                     
int disconnecting = 0                                                                     
int offset = 0                                                                     
NoneType producer = None                                                                  
int producerPaused = 0                                                                     
int SEND_LIMIT = 131072                                                                
int streamingProducer = 0                                                                     
bool _writeDisconnected = False
bool _writeDisconnecting = False
    Inherited from Logger
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

doWrite(self)

Raises a RuntimeError
Overrides:
twisted.internet.abstract.FileDescriptor.doWrite

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy twisted.internet.base.BasePort>                         

__provides__

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

addressFamily

Type:
NoneType
Value:
None                                                                  

socketType

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri Feb 2 11:29:20 2007 http://epydoc.sf.net