diff options
Diffstat (limited to 'include/HttpServ.h')
-rw-r--r-- | include/HttpServ.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/HttpServ.h b/include/HttpServ.h index 7ac40e2..18295bc 100644 --- a/include/HttpServ.h +++ b/include/HttpServ.h @@ -6,6 +6,7 @@ #include <String.h> #include <Variables.h> #include <Action.h> +#include <Task.h> #include <Exceptions.h> /* @@ -16,24 +17,17 @@ * qui est obligatoirement statique et doit posseder l'url /bin/start. */ -class HttpServ : public Base { +class HttpServ : public Task { public: HttpServ(int = 1500, const String & = String("GruiK Server v0.1")) throw (GeneralException); ~HttpServ() {} - void MainLoop(Action *); + void SetMenu(Action *); + virtual String GetName(); + protected: + virtual int Do(); private: - String GetMime(const String &); - void ProcessRequest(Action *, Socket); - bool ParseUri(String &, String &, Handle *); - void ParseVars(Handle *, int); - void ShowError(Handle *); - void SendHeads(Handle *, const String &); - void SendRedirect(Handle *); - String name; Socket Listener; - Variables * Vars; int localport; - bool bad; }; extern String endhl, endnl; |