summaryrefslogtreecommitdiff
path: root/rotord/rotord.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-02-23 17:01:45 +0000
committerComment <tim@gray.(none)>2013-02-23 17:01:45 +0000
commit35f5f0938c82e9aa9f0c704b1d43dff3209ad567 (patch)
tree4e402f0525ba28099e43a7aa8e8a6a8b4aa1d230 /rotord/rotord.h
parent6fee126dc8ed8cc7c961c683f17896450dd8de03 (diff)
thread server architecture
Diffstat (limited to 'rotord/rotord.h')
-rwxr-xr-x[-rw-r--r--]rotord/rotord.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h
index bbc566f..dc5a831 100644..100755
--- a/rotord/rotord.h
+++ b/rotord/rotord.h
@@ -63,19 +63,19 @@ class AudioAnalyserHandler: public HTTPRequestHandler
class RenderContextHandler: public HTTPRequestHandler
{
public:
- RenderContextHandler(const Rotor::Command& command);
+ RenderContextHandler(const std::vector <std::string> _command);
void handleRequest(HTTPServerRequest& request,HTTPServerResponse& response);
private:
- //stateless
+ std::vector <std::string> command;
};
class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory
{
public:
- RotorRequestHandlerFactory(const std::string& format);
HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request);
private:
- std::string _format;
+ std::unordered_map<std::string,Rotor::Render_context*> context;
+ Poco::UUIDGenerator idGen;
};
class RotorServer: public Poco::Util::ServerApplication
@@ -91,7 +91,7 @@ class RotorServer: public Poco::Util::ServerApplication
int main(const std::vector<std::string>& args);
private:
bool _helpRequested;
- std::unordered_map<Poco::UUID,Rotor::Render_context> render_contexts;
+
};
int main(int argc, char** argv)