Part of twisted.spread.pb View Source View In Hierarchy
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||buildProtocol||Build the broker instance, passing the security options to it.|
|Method||clientConnectionFailed||Called when a connection has failed to connect.|
|Method||clientConnectionLost||Reconnecting subclasses should call with reconnecting=1.|
|Method||getRootObject||Get root object of remote PB server.|
|Method||disconnect||If the factory is connected, close the connection.|
|Method||login||Login and get perspective from remote PB server.|
|Method||_cbLoginAnonymous||Attempt an anonymous login on the given remote root object.|
Inherited from ClientFactory:
|Method||startedConnecting||Called when a connection has been started.|
|Method||doStart||Make sure startFactory is called.|
|Method||doStop||Make sure stopFactory is called.|
|Method||startFactory||This will be called before I begin listening on a Port or Connector.|
|Method||stopFactory||This will be called before I stop listening on all Ports/Connectors.|
|Parameters||unsafeTracebacks||if set, tracebacks for exceptions will be sent over the wire.
|security||security options used by the broker, default to
Called when a connection has failed to connect.It may be useful to call connector.connect() - this will reconnect.
|Parameters||reason|| (type: |
|Returns||Deferred of the root object.|
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.
|Parameters||root||The object on which to attempt the login, most likely returned by a call
|client||A jellyable object which will be used as the mind parameter for the login attempt.|
Login and get perspective from remote PB server.Currently the following credentials are supported: