From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- NetEx/HttpServletExec.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 NetEx/HttpServletExec.h (limited to 'NetEx/HttpServletExec.h') diff --git a/NetEx/HttpServletExec.h b/NetEx/HttpServletExec.h new file mode 100644 index 0000000..bead257 --- /dev/null +++ b/NetEx/HttpServletExec.h @@ -0,0 +1,57 @@ +/* Project nGenEx + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: NetEx.lib + FILE: HttpServletExec.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Network Server Pump for HTTP Server +*/ + + +#ifndef HttpServletExec_h +#define HttpServletExec_h + +#include "HttpServer.h" + +// +-------------------------------------------------------------------+ + +class HttpServlet; +class HttpSession; + +// +-------------------------------------------------------------------+ + +class HttpServletExec : public HttpServer +{ +public: + static const char* TYPENAME() { return "HttpServletExec"; } + + HttpServletExec(WORD port, int poolsize=1); + virtual ~HttpServletExec(); + + int operator == (const HttpServletExec& l) const { return addr == l.addr; } + + virtual bool DoGet(HttpRequest& request, HttpResponse& response); + + virtual HttpServlet* GetServlet(HttpRequest& request); + virtual HttpSession* GetSession(HttpRequest& request); + + virtual DWORD CheckSessions(); + + virtual int GetSessionTimeout() const { return session_timeout; } + virtual void SetSessionTimeout(int t) { session_timeout = t; } + +protected: + virtual void DoSyncedCheck(); + + List sessions; + int session_timeout; + HANDLE hsession; + bool exec_shutdown; +}; + +#endif HttpServletExec_h \ No newline at end of file -- cgit v1.1