twisted.application.internet.StreamServerEndpointService(service.Service, object) class documentationtwisted.application.internet
(View In Hierarchy)
A StreamServerEndpointService
is an IService 
which runs a server on a listening port described by an IStreamServerEndpoint.
| Present Since | 10.2 | |
| Instance Variable | factory | A server factory which will be used to listen on the endpoint. | 
| Instance Variable | endpoint | An IStreamServerEndpointprovider which will be used to listen when the service starts. | 
| Method | __init__ | Undocumented | 
| Method | privilegedStartService | Start listening on the endpoint. | 
| Method | startService | Start listening on the endpoint, unless privilegedStartServicegot around to it already. | 
| Method | stopService | Stop listening on the port if it is already listening, otherwise, cancel the attempt to listen. | 
| Instance Variable | _waitingForPort | a Deferred, if listenhas yet been invoked on the endpoint, 
otherwise None. | 
| Instance Variable | _raiseSynchronously | Defines error-handling behavior for the case where listen(...)raises an exception beforestartServiceorprivilegedStartServicehave completed. (type:bool) | 
Inherited from Service:
| Method | __getstate__ | Undocumented | 
| Method | setName | Set the name of the service. | 
| Method | setServiceParent | Set the parent of the service.  This method is responsible for setting 
the parentattribute on this service (the child service). | 
| Method | disownServiceParent | Use this API to remove an IServicefrom anIServiceCollection. | 
listen(...)
raises an exception before startService or 
privilegedStartService have completed. (type: bool)
  Start listening on the endpoint, unless privilegedStartService
got around to it already.