Exemplo n.º 1
0
 def startService(self):
     """
     Start reading on the inherited port.
     """
     Service.startService(self)
     self.reportingFactory = ReportingHTTPFactory(self.site, vary=True)
     inheritedPort = self.reportingFactory.inheritedPort = InheritedPort(
         self.fd, self.createTransport, self.reportingFactory)
     inheritedPort.startReading()
     inheritedPort.reportStatus("0")
Exemplo n.º 2
0
 def __init__(self, wrappedFactory, fd, createTransport):
     self.inheritedPort = InheritedPort(fd, createTransport, self)
     super(ReportingWrapperFactory, self).__init__(wrappedFactory)