code: def start_listener(self):
          '''start listening for packets'''
          if self.sock is not None:
              self.sock.close()
          self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
          self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
          self.sock.bind(('', self.asterix_settings.port))
          self.sock.setblocking(False)
          print("Started on port %u" % self.asterix_settings.portf start_listener(self):
          '''start listening for packets'''
          if self.sock is not None:
              self.sock.close()
          self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
          self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
          self.sock.bind(('', self.asterix_settings.port))
          self.sock.setblocking(False)
          print("Started on port %u" % self.asterix_settings.port)
docs: start listening for packets