version 0.1.6
[fms.git] / include / http / httpthread.h
diff --git a/include/http/httpthread.h b/include/http/httpthread.h
new file mode 100644 (file)
index 0000000..ecb61e4
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef _httpthread_\r
+#define _httpthread_\r
+\r
+#include "../pthreadwrapper/runnable.h"\r
+#include "../ilogger.h"\r
+#include "../idatabase.h"\r
+#include "ipagehandler.h"\r
+#include "httpdefs.h"\r
+\r
+#include <shttpd.h>\r
+\r
+class HTTPThread:public PThread::Runnable,public ILogger, public IDatabase\r
+{\r
+public:\r
+       HTTPThread();\r
+       ~HTTPThread();\r
+       \r
+       void Run();\r
+\r
+private:\r
+       static void PageCallback(shttpd_arg *arg);\r
+\r
+       struct shttpd_ctx *m_ctx;\r
+\r
+       std::vector<IPageHandler *> m_pagehandlers;\r
+\r
+};\r
+\r
+#endif // _httpthread_\r