From 3f80008ba387b1e1e9e360f047fd6d1684c85d4c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 11 Jul 2006 12:55:49 +0000 Subject: Event class for m_httpd.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4325 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/httpd.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/modules/httpd.h (limited to 'src/modules/httpd.h') diff --git a/src/modules/httpd.h b/src/modules/httpd.h new file mode 100644 index 000000000..9be23f9f0 --- /dev/null +++ b/src/modules/httpd.h @@ -0,0 +1,42 @@ +#include "base.h" + +#ifndef __HTTPD_H__ +#define __HTTPD_H__ + +HTTPRequest : public classbase +{ + protected: + + std::string type; + std::string document; + std::string ipaddr; + + public: + + void* opaque; + + HTTPRequest(const std::string &request_type, const std::string &uri, void* opaque, const std::string &ip) + : type(request_type), document(uri), ipaddr(ip) + { + } + + std::string& GetType() + { + return type; + } + + std::string& GetURI() + { + return document; + } + + std::string& GetIP() + { + return ipaddr; + } +} + +#endif + +//httpr(request_type,uri,headers,this,this->GetIP()); + -- cgit v1.2.3