Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`application`.`internet`.`_DisconnectFactory``

class documentation

`class _DisconnectFactory: (source)`

Constructor: `_DisconnectFactory(protocolFactory, protocolDisconnected)`

View In Hierarchy

A `_DisconnectFactory` is a proxy for `IProtocolFactory` that catches `connectionLost` notifications and relays them.

Method | `__getattr__` | Undocumented
Method | `__init__` | Undocumented
Method | `__repr__` | Undocumented
Method | `buildProtocol` | Create a `_ReconnectingProtocolProxy` with the disconnect-notification callback we were called with.
Instance Variable | `_protocolDisconnected` | Undocumented
Instance Variable | `_protocolFactory` | Undocumented

def __getattr__(self, item): (source)

Undocumented

def __init__(self, protocolFactory, protocolDisconnected): (source)

Undocumented

def __repr__(self) -> `str`: (source)

Undocumented

def buildProtocol(self, addr): (source)

Create a `_ReconnectingProtocolProxy` with the disconnect-notification callback we were called with.

Parameters
addr | The address the connection is coming from.
Returns
a `_ReconnectingProtocolProxy` for a protocol produced by `self._protocolFactory`

_protocolDisconnected = (source)

Undocumented

_protocolFactory = (source)

Undocumented