opn_server.py 583 B

123456789101112131415161718192021222324252627
  1. #! /usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # SPDX-FileCopyrightText: Copyright (C) 2021-2023 MH3SP Server Project
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. """Monster Hunter OPN server."""
  6. from mh.pat import PatServer, PatRequestHandler
  7. from other.utils import server_base, server_main
  8. class OpnServer(PatServer):
  9. """Basic OPN server class."""
  10. pass
  11. class OpnRequestHandler(PatRequestHandler):
  12. """Basic OPN server request handler class."""
  13. pass
  14. BASE = server_base("OPN", OpnServer, OpnRequestHandler)
  15. if __name__ == "__main__":
  16. server_main(*BASE)