CivetHttpServer.h 735 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include "BaseHttpServer.h"
  10. #include "CivetServer.h"
  11. namespace Metastream
  12. {
  13. class CivetHttpServer : public BaseHttpServer
  14. {
  15. public:
  16. CivetHttpServer(const DataCache* cache);
  17. virtual ~CivetHttpServer();
  18. virtual bool Start(const std::string& civetOptions) override;
  19. virtual void Stop() override;
  20. private:
  21. CivetHandler* m_handler;
  22. CivetWebSocketHandler* m_webSocketHandler;
  23. CivetServer* m_server;
  24. };
  25. } // namespace Metastream