整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
37
network/HTTPServer.h
Normal file
37
network/HTTPServer.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue