Esempio n. 1
0
 def __init__(self, workerclass, path=None, processmodel=None, debug=False):
     if path is None:
         path = workerclass.PATH
     self._sock = socket.unix_listener(path)
     self.workerclass = workerclass
     self._procmanager = processmodel or ForkingModel()
     self.debug = debug
     if debug:
         global debugger
         from pycopia import debugger
Esempio n. 2
0
 def __init__(self, destination_report):
     class ReportProxyWrapper(LocalReportProxy):
         REPORT = destination_report
     sock = socket.unix_listener(_get_path())
     self._h = asyncio.AsyncServerHandler(sock, ReportProxyWrapper)
Esempio n. 3
0
 def __init__(self, destination_report):
     class ReportProxyWrapper(LocalReportProxy):
         REPORT = destination_report
     sock = socket.unix_listener(_get_path())
     self._h = asyncio.AsyncServerHandler(sock, ReportProxyWrapper)