summaryrefslogtreecommitdiffhomepage
path: root/NetEx/HttpServletExec.h
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx/HttpServletExec.h')
-rw-r--r--NetEx/HttpServletExec.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/NetEx/HttpServletExec.h b/NetEx/HttpServletExec.h
index 8c9fd2b..8f06d73 100644
--- a/NetEx/HttpServletExec.h
+++ b/NetEx/HttpServletExec.h
@@ -14,7 +14,8 @@
#ifndef HttpServletExec_h
#define HttpServletExec_h
-#include <windows.h>
+#include <cstdint>
+#include <thread>
#include "HttpRequest.h"
#include "HttpResponse.h"
@@ -29,7 +30,7 @@ class HttpServletExec : public HttpServer
public:
static const char* TYPENAME() { return "HttpServletExec"; }
- HttpServletExec(WORD port, int poolsize=1);
+ HttpServletExec(std::uint16_t port, int poolsize=1);
virtual ~HttpServletExec();
int operator == (const HttpServletExec& l) const { return addr == l.addr; }
@@ -39,7 +40,7 @@ public:
virtual HttpServlet* GetServlet(HttpRequest& request);
virtual HttpSession* GetSession(HttpRequest& request);
- virtual DWORD CheckSessions();
+ virtual void CheckSessions();
virtual int GetSessionTimeout() const { return session_timeout; }
virtual void SetSessionTimeout(int t) { session_timeout = t; }
@@ -49,7 +50,7 @@ protected:
List<HttpSession> sessions;
int session_timeout;
- HANDLE hsession;
+ std::thread hsession;
bool exec_shutdown;
};