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

Class BaseConnector

Ephemeral --+
            |
           BaseConnector

Known Subclasses:
Connector

Basic implementation of connector.

State can be: "connecting", "connected", "disconnected"
Method Summary
  __init__(self, factory, timeout, reactor)
  buildProtocol(self, addr)
  cancelTimeout(self)
  connect(self)
Start connection to remote server.
  connectionFailed(self, reason)
  connectionLost(self, reason)
  disconnect(self)
Disconnect whatever our state is.
  getDestination(self)
  stopConnecting(self)
Stop attempting to connect.
    Inherited from Ephemeral
  __getstate__(self)
  __setstate__(self, state)

Class Variable Summary
Implements __implemented__ = <implementedBy twisted.internet.base.B...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
int factoryStarted = 0                                                                     
NoneType timeoutID = None                                                                  
    Inherited from Ephemeral
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

connect(self)

Start connection to remote server.

disconnect(self)

Disconnect whatever our state is.

stopConnecting(self)

Stop attempting to connect.

Class Variable Details

__implemented__

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

__provides__

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

factoryStarted

Type:
int
Value:
0                                                                     

timeoutID

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri Apr 6 10:13:42 2007 http://epydoc.sf.net