p26001-store-acs-soc-fw-app/network/HTTPServer.h
2026-09-28 21:33:04 +08:00

37 lines
910 B
C++

#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