#ifndef _httpthread_\r
#define _httpthread_\r
\r
-#include "../pthreadwrapper/runnable.h"\r
+#include "../threadwrapper/cancelablerunnable.h"\r
#include "../ilogger.h"\r
#include "../idatabase.h"\r
-#include "ipagehandler.h"\r
-#include "httpdefs.h"\r
\r
-#include <shttpd.h>\r
+#include <cstdlib>\r
\r
-class HTTPThread:public PThread::Runnable,public ILogger, public IDatabase\r
+class HTTPThread:public CancelableRunnable,public ILogger, public IDatabase\r
{\r
public:\r
HTTPThread();\r
- ~HTTPThread();\r
\r
- void Run();\r
+ void run();\r
\r
private:\r
- static void PageCallback(shttpd_arg *arg);\r
+ //static void PageCallback(shttpd_arg *arg);\r
\r
- struct shttpd_ctx *m_ctx;\r
-\r
- std::vector<IPageHandler *> m_pagehandlers;\r
+ int m_listenport;\r
\r
};\r
\r