t.a.i.StreamServerEndpointService(service.Service, object) : class documentation

Part of twisted.application.internet View Source View In Hierarchy

A StreamServerEndpointService is an IService which runs a server on a listening port described by an IStreamServerEndpoint.
Instance VariablesfactoryA server factory which will be used to listen on the endpoint.
endpointAn IStreamServerEndpoint provider which will be used to listen when the service starts.
_waitingForPorta Deferred, if listen has yet been invoked on the endpoint, otherwise None.
_raiseSynchronouslyDefines error-handling behavior for the case where listen(...) raises an exception before startService or privilegedStartService have completed. (type: bool )
Present Since10.2
Method __init__ Undocumented
Method privilegedStartService Start listening on the endpoint.
Method startService Start listening on the endpoint, unless privilegedStartService got around to it already.
Method stopService Stop listening on the port if it is already listening, otherwise, cancel the attempt to listen.

Inherited from Service:

Method __getstate__ Undocumented
Method setName Set the name of the service.
Method setServiceParent Set the parent of the service.
Method disownServiceParent Use this API to remove an IService from an IServiceCollection.
def __init__(self, endpoint, factory): (source)
Undocumented
def privilegedStartService(self): (source)
Start listening on the endpoint.
def startService(self): (source)
Start listening on the endpoint, unless privilegedStartService got around to it already.
def stopService(self): (source)
Stop listening on the port if it is already listening, otherwise, cancel the attempt to listen.
Returnsa Deferred which fires with None when the port has stopped listening.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.