# Create and bind socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# Create and bind socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.stop() # tell main event loop to stop
def reload_config(signum, frame):
self.stop() # tell main event loop to stop
def reload_config(signum, frame):
# TODO iterate handlers list propagating reload action
signal.signal(signal.SIGINT, quit)
signal.signal(signal.SIGTERM, quit)
# TODO iterate handlers list propagating reload action
signal.signal(signal.SIGINT, quit)
signal.signal(signal.SIGTERM, quit)
def handle(self):
r"handle() -> None :: Handle incoming events using the dispatcher."
(msg, addr) = self.file.recvfrom(65535)
def handle(self):
r"handle() -> None :: Handle incoming events using the dispatcher."
(msg, addr) = self.file.recvfrom(65535)
class Root(dispatcher.Handler):
@handler(u"Print all the arguments, return nothing.")
def test(self, *args):
class Root(dispatcher.Handler):
@handler(u"Print all the arguments, return nothing.")
def test(self, *args):