twisted.application.strports
module documentationtwisted.application
View Source
Construct listening port services from a simple string description.
See Also | twisted.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. |
Return the service corresponding to a description.
Parameters | description | The description of the listening port, in the syntax described by twisted.internet.endpoints.serverFromString . (type: str ) |
factory | The protocol factory which will build protocols for connections to this
service. (type: twisted.internet.interfaces.IProtocolFactory ) | |
Returns | the service corresponding to a description of a reliable stream server. (type: twisted.application.service.IService ) | |
See Also | twisted.internet.endpoints.serverFromString |
Listen on a port corresponding to a description.
Parameters | description | The description of the connecting port, in the syntax described by twisted.internet.endpoints.serverFromString . (type: str ) |
factory | The protocol factory which will build protocols on connection. (type: twisted.internet.interfaces.IProtocolFactory ) | |
Returns | the port corresponding to a description of a reliable virtual circuit
server. (type: twisted.internet.interfaces.IListeningPort ) | |
See Also | twisted.internet.endpoints.serverFromString |