summaryrefslogtreecommitdiffhomepage
path: root/NetEx/HttpServletExec.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-30 18:55:34 +0200
committerAki <please@ignore.pl>2022-03-30 18:55:34 +0200
commit1c17ced79815c94d704bc042f22dc5a0df1df187 (patch)
tree98ccc2e248a9c384e5038ba6c9a4b84a50468530 /NetEx/HttpServletExec.h
parent51df86b38668f413c078fd96a0b8828dcd8561ef (diff)
downloadstarshatter-1c17ced79815c94d704bc042f22dc5a0df1df187.zip
starshatter-1c17ced79815c94d704bc042f22dc5a0df1df187.tar.gz
starshatter-1c17ced79815c94d704bc042f22dc5a0df1df187.tar.bz2
Removed windows header uses in HttpServletExec
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;
};