#ifndef CONTROLSERVER_H #define CONTROLSERVER_H #include #include #include #include #include #include "PlexHTTPRequestHandler.h" #include "PlexReqHandlerFactory.h" #include namespace plexclient { class ControlServer : public cThread { public: static ControlServer& GetInstance() { static ControlServer instance; return instance; } void Stop(); protected: void Action(); private: ControlServer(); Poco::Net::ServerSocket *m_pSvs; Poco::Net::HTTPServer *m_pSrv; }; } #endif // CONTROLSERVER_H