t.a.strports : module documentation

Part of twisted.application View Source

Construct listening port services from a simple string description.
See Alsotwisted.internet.endpoints.serverFromString
twisted.internet.endpoints.clientFromString
Function parse This function is deprecated as of Twisted 10.2.
Function service Return the service corresponding to a description.
Function listen Listen on a port corresponding to a description
def parse(description, factory, default='tcp'): (source)
This function is deprecated as of Twisted 10.2.
See Alsotwisted.internet.endpoints.server
def service(description, factory, default=_DEFAULT, reactor=None): (source)
Return the service corresponding to a description.
ParametersdescriptionThe description of the listening port, in the syntax described by twisted.internet.endpoints.server. (type: str)
factoryThe protocol factory which will build protocols for connections to this service. (type: twisted.internet.interfaces.IProtocolFactory)
defaultDo not use this parameter. It has been deprecated since Twisted 10.2.0. (type: str or None)
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, default=None): (source)
Listen on a port corresponding to a description
Returnsthe port corresponding to a description of a reliable virtual circuit server.

See the documentation of the parse function for description of the semantics of the arguments.

(type: twisted.internet.interfaces.IListeningPort)
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.