feat: 3.9.5.81 基础收发功能
This commit is contained in:
1 parent
66ea9d5428
commit
5a9f91b425
38 files changed
+21363
-28
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#ifndef WXHELPER_HTTP_SERVER_H_
|
||||
#define WXHELPER_HTTP_SERVER_H_
|
||||
|
||||
#include "mongoose.h"
|
||||
|
||||
namespace wxhelper {
|
||||
class HttpServer {
|
||||
public:
|
||||
explicit HttpServer(int port);
|
||||
HttpServer(const HttpServer&) = delete;
|
||||
HttpServer(HttpServer &&)=delete;
|
||||
HttpServer& operator=(const HttpServer&) = delete;
|
||||
~HttpServer();
|
||||
|
||||
bool HttpStart();
|
||||
bool HttpClose();
|
||||
int GetPort();
|
||||
bool GetRunning();
|
||||
const mg_mgr* GetMgr();
|
||||
|
||||
private:
|
||||
int port_;
|
||||
bool running_;
|
||||
struct mg_mgr mgr_;
|
||||
HANDLE thread_;
|
||||
};
|
||||
} // namespace wxhelper
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user