diff options
Diffstat (limited to 'rotord/rotord.h')
| -rwxr-xr-x | rotord/rotord.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h index dc5a831..472a879 100755 --- a/rotord/rotord.h +++ b/rotord/rotord.h @@ -21,6 +21,7 @@ #include "Poco/URI.h" using Poco::Net::ServerSocket; +using Poco::Net::HTTPResponse; using Poco::Net::HTTPRequestHandler; using Poco::Net::HTTPRequestHandlerFactory; using Poco::Net::HTTPServer; @@ -63,19 +64,22 @@ class AudioAnalyserHandler: public HTTPRequestHandler class RenderContextHandler: public HTTPRequestHandler { public: - RenderContextHandler(const std::vector <std::string> _command); + RenderContextHandler(string _content,HTTPServerResponse::HTTPStatus _status); void handleRequest(HTTPServerRequest& request,HTTPServerResponse& response); private: - std::vector <std::string> command; + std::string content; + HTTPServerResponse::HTTPStatus status; }; + class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory { public: HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request); private: - std::unordered_map<std::string,Rotor::Render_context*> context; + std::unordered_map<std::string,Rotor::Render_context> context; Poco::UUIDGenerator idGen; + Poco::ThreadPool pool; }; class RotorServer: public Poco::Util::ServerApplication |
