Package beepy :: Package transports :: Module tcp :: Class BeepClientFactory
[show private | hide private]
[frames | no frames]

Class BeepClientFactory

  BeepFactory --+
                |
  Factory --+   |
            |   |
ClientFactory --+
                |
               BeepClientFactory

Known Subclasses:
SASLClientFactory, TLSClientFactory

This class is the base class for all application clients. You would subclass from this class to build your application
Method Summary
  clientConnectionFailed(self, connector, reason)
Override this to change client functionality
  clientConnectionLost(self, connector, reason)
Override this to change client functionality
    Inherited from BeepFactory
  __init__(self)
  addProfile(self, profileModule, init_callback)
  getProfileDict(self)
    Inherited from ClientFactory
  startedConnecting(self, connector)
Called when a connection has been started.
    Inherited from Factory
  buildProtocol(self, addr)
Create an instance of a subclass of Protocol.
  doStart(self)
Make sure startFactory is called.
  doStop(self)
Make sure stopFactory is called.
  startFactory(self)
This will be called before I begin listening on a Port or Connector.
  stopFactory(self)
This will be called before I stop listening on all Ports/Connectors.

Class Variable Summary
NoneType lostReason = None                                                                  
classobj protocol = beepy.transports.tcp.BeepClientProtocol
NoneType reason = None                                                                  
    Inherited from Factory
tuple __implements__ = (<class 'twisted.internet.interfaces.IP...
str noisy = 'sure, why not'
int numPorts = 0                                                                     

Method Details

clientConnectionFailed(self, connector, reason)

Override this to change client functionality
Overrides:
twisted.internet.protocol.ClientFactory.clientConnectionFailed

clientConnectionLost(self, connector, reason)

Override this to change client functionality
Overrides:
twisted.internet.protocol.ClientFactory.clientConnectionLost

Class Variable Details

lostReason

Type:
NoneType
Value:
None                                                                  

reason

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.0 on Thu Sep 30 14:39:24 2004 http://epydoc.sf.net