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`.`strports``

module documentation
(source)

Construct listening port services from a simple string description.

See Also
`twisted.internet.endpoints.serverFromString`
`twisted.internet.endpoints.clientFromString`

Function | `listen` | Listen on a port corresponding to a description.
Function | `service` | Return the service corresponding to a description.
Function | `_getReactor` | Undocumented

def listen(description, factory): (source)

Listen on a port corresponding to a description.

Parameters
description:`str` | The description of the connecting port, in the syntax described by `twisted.internet.endpoints.serverFromString`.
factory:`twisted.internet.interfaces.IProtocolFactory` | The protocol factory which will build protocols on connection.
Returns
`twisted.internet.interfaces.IListeningPort` | the port corresponding to a description of a reliable virtual circuit server.
See Also
`twisted.internet.endpoints.serverFromString`

def service(description, factory, reactor=None): (source)

Return the service corresponding to a description.

Parameters
description:`str` | The description of the listening port, in the syntax described by `twisted.internet.endpoints.serverFromString`.
factory:`twisted.internet.interfaces.IProtocolFactory` | The protocol factory which will build protocols for connections to this service.
reactor:`Optional[interfaces.IReactorCore]` | Undocumented
Returns
`twisted.application.service.IService` | the service corresponding to a description of a reliable stream server.
See Also
`twisted.internet.endpoints.serverFromString`

def _getReactor(): (source)

Undocumented

Returns
`interfaces.IReactorCore` | Undocumented