30 lines
761 B
C++
30 lines
761 B
C++
|
#ifndef _LOCALSERVER_H_
|
||
|
#define _LOCALSERVER_H_
|
||
|
#include <iostream>
|
||
|
#include <string>
|
||
|
#include <stack>
|
||
|
#include <vector>
|
||
|
#include <boost/asio.hpp>
|
||
|
#include <boost/thread/thread.hpp>
|
||
|
#include <boost/unordered_set.hpp>
|
||
|
#include "../utility/SH_MySingleton.hpp"
|
||
|
#include "../common/SH_global.h"
|
||
|
#include "../platform/SH_PlatformInit.hpp"
|
||
|
#include "../secure/SH_Secure.hpp"
|
||
|
#include "../jsonparse/SH_JsonCmd.hpp"
|
||
|
|
||
|
|
||
|
class LocalServer : public MySingleton<LocalServer>
|
||
|
{
|
||
|
private:
|
||
|
boost::mutex mMutex;
|
||
|
// _Event mWaveEvent;
|
||
|
std::vector<std::string> m_VecFileName;
|
||
|
public:
|
||
|
LocalServer();
|
||
|
virtual ~LocalServer();
|
||
|
void HandleFromServer(const char *pData, int pLen, const char *topic);
|
||
|
std::string HandleCgi_cmd(std::string &pData);
|
||
|
|
||
|
};
|
||
|
#endif
|