twisted.internet.endpointsView Source (View In Hierarchy)
Wrap a factory in order to wrap the protocols it builds.
|Method||startedConnecting||A connection attempt was started. Remember the connector which started said attempt, for use later.|
|Method||doStart||Start notifications are passed straight through to the wrapped factory.|
|Method||doStop||Stop notifications are passed straight through to the wrapped factory.|
|Instance Variable||_wrappedFactory||A provider of IProtocolFactory whose buildProtocol method will be called and whose resulting protocol will be wrapped.|
|Method||_canceller||The outgoing connection attempt was cancelled. Fail that
Inherited from ClientFactory:
|Method||clientConnectionLost||Called when an established connection is lost.|
|Class Method||forProtocol||Create a factory for the given protocol.|
|Method||logPrefix||Describe this factory for log messages.|
|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.|
Deferredthat fires when the protocol is connected
connectorthat is managing the current or previous connection attempt.
|Parameters||wrappedFactory||A provider of IProtocolFactory whose buildProtocol method will be called and whose resulting protocol will be wrapped.|
A connection attempt was started. Remember the connector which started said attempt, for use later.
|Note||This relies on startedConnecting having been called, so it may seem as though there's a race condition where |
Deferred when the client connection fails.