module documentation
(source)

Construct listening port services from a simple string description.

See Alsotwisted.internet.endpoints.serverFromString
twisted.internet.endpoints.clientFromString
Function service Return the service corresponding to a description.
Function listen Listen on a port corresponding to a description.
Function _getReactor Undocumented
def _getReactor(): (source)

Undocumented

ReturnsUndocumented (type: interfaces.IReactorCore)
def service(description, factory, reactor=None): (source)

Return the service corresponding to a description.

ParametersdescriptionThe description of the listening port, in the syntax described by twisted.internet.endpoints.serverFromString. (type: str)
factoryThe protocol factory which will build protocols for connections to this service. (type: twisted.internet.interfaces.IProtocolFactory)
reactorUndocumented (type: Optional[interfaces.IReactorCore])
Returnsthe service corresponding to a description of a reliable stream server. (type: twisted.application.service.IService)
See Alsotwisted.internet.endpoints.serverFromString
def listen(description, factory): (source)

Listen on a port corresponding to a description.

ParametersdescriptionThe description of the connecting port, in the syntax described by twisted.internet.endpoints.serverFromString. (type: str)
factoryThe protocol factory which will build protocols on connection. (type: twisted.internet.interfaces.IProtocolFactory)
Returnsthe port corresponding to a description of a reliable virtual circuit server. (type: twisted.internet.interfaces.IListeningPort)
See Alsotwisted.internet.endpoints.serverFromString
API Documentation for Twisted, generated by pydoctor 21.2.2 at 2021-07-28 08:52:54.