整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

37
network/HTTPServer.h Normal file
View file

@ -0,0 +1,37 @@
#ifndef DC9BEC60_0C80_41F2_B1F7_289C63388DC1
#define DC9BEC60_0C80_41F2_B1F7_289C63388DC1
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "Poco/Net/HTTPServer.h"
#include "Poco/SharedPtr.h"
#include "util/Configuration.h"
namespace Network
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class HTTPServer: public Util::Configuration
{
public:
static std::string HOST;
static std::string PORT;
public:
HTTPServer();
~HTTPServer();
void start();
void stop();
private:
Poco::SharedPtr<Poco::Net::HTTPServer> _pHTTPServer;
};
}
#endif