HTTPServer.h 387 B

123456789101112131415161718192021222324
  1. //
  2. // Created by xcbosa on 2023/1/28.
  3. //
  4. #pragma once
  5. #include "httpserver-private.h"
  6. using namespace std;
  7. namespace xc {
  8. namespace httpserver {
  9. class HTTPServer {
  10. public:
  11. HTTPServer(ushort bindPort);
  12. void serverLoop();
  13. private:
  14. int serverSocketFd;
  15. ushort bindPort;
  16. };
  17. } // xc
  18. } // httpserver