def __init__(self, workerclass, protocol, path=None, debug=False): path = path or workerclass.PATH or self.PATH self._sock = socket.udp_listener((host, port)) self.workerclass = workerclass self.protocol = protocol self.debug = debug if debug: global debugger from pycopia import debugger
def __init__(self, workerclass, path=None, debug=False): if path is None: path = self.PATH self._sock = socket.udp_listener((host, port)) self.workerclass = workerclass self.debug = debug if debug: global debugger from pycopia import debugger
def __init__(self, workerclass, port=None, host="", debug=False): if port is None: port = workerclass.port self._sock = socket.udp_listener((host, port)) self.workerclass = workerclass self.debug = debug if debug: global debugger from pycopia import debugger
def __init__(self, workerclass, protocol, port=None, host=None, debug=False): port = port or workerclass.PORT or self.PORT host = host or "" self._sock = socket.udp_listener((host, port)) self.workerclass = workerclass self.protocol = protocol self.debug = debug if debug: global debugger from pycopia import debugger