code: def reg_event(self, flags):
          
          command = const.CMD_REG_EVENT
          command_string = pack ("I", flags)
          cmd_response = self.__send_command(command, command_string)
          if not cmd_response.get('status'):
              raise ZKErrorResponse("cant' reg events %i" % flags)
docs: reg events