Trees | Index | Help |
|
---|
Package twisted :: Package spread :: Module pb :: Class PBClientFactory |
|
Factory
--+ |ClientFactory
--+ | PBClientFactory
ReconnectingPBClientFactory
Client factory for PB brokers.
As with all client factories, use with reactor.connectTCP/SSL/etc.. getPerspective and getRootObject can be called either before or after the connect.Method Summary | |
---|---|
__init__(self)
| |
Called when a connection has failed to connect. | |
Reconnecting subclasses should call with reconnecting=1. | |
clientConnectionMade(self,
broker)
| |
If the factory is connected, close the connection. | |
Get root object of remote PB server. | |
Login and get perspective from remote PB server. | |
Inherited from ClientFactory :
startedConnecting
Inherited from Factory :
buildProtocol ,
doStart ,
doStop ,
startFactory ,
stopFactory
|
Class Variable Summary | |
---|---|
classobj |
protocol = twisted.spread.pb.Broker |
int |
unsafeTracebacks = 0 |
Inherited from Factory :
__implemented__ ,
__providedBy__ ,
__provides__ ,
noisy ,
numPorts
|
Method Details |
---|
clientConnectionFailed(self, connector, reason)Called when a connection has failed to connect. It may be useful to call connector.connect() - this will reconnect.
|
clientConnectionLost(self, connector, reason, reconnecting=0)Reconnecting subclasses should call with reconnecting=1. |
disconnect(self)If the factory is connected, close the connection. Note that if you set up the factory to reconnect, you will need to implement extra logic to prevent automatic reconnection after this is called. |
getRootObject(self)Get root object of remote PB server.
|
login(self, credentials, client=None)Login and get perspective from remote PB server. Currently only credentials implementingtwisted.cred.credentials.IUsernamePassword are
supported.
|
Class Variable Details |
---|
unsafeTracebacks
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:14 2007 | http://epydoc.sf.net |