class documentation
class _DisconnectFactory: (source)
Constructor: _DisconnectFactory(protocolFactory, protocolDisconnected)
Implements interfaces: twisted.internet.interfaces.IProtocolFactory
A _DisconnectFactory is a proxy for IProtocolFactory that catches connectionLost notifications and relays them.
| Method | __getattr__ |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | build |
Create a _ReconnectingProtocolProxy with the disconnect-notification callback we were called with. |
| Instance Variable | _protocol |
Undocumented |
| Instance Variable | _protocol |
Undocumented |
def __init__(self, protocolFactory:
IProtocolFactory, protocolDisconnected: Callable[ [ Failure], None]):
(source)
¶
Undocumented
Create a _ReconnectingProtocolProxy with the disconnect-notification callback we were called with.
| Parameters | |
addr:IAddress | The address the connection is coming from. |
| Returns | |
IProtocol | None | a _ReconnectingProtocolProxy for a protocol produced by self._protocolFactory |