summaryrefslogtreecommitdiff
path: root/modules/extra/httpd.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-28 22:52:52 -0500
committerAdam <Adam@anope.org>2012-11-28 22:54:26 -0500
commit26a048e5c41b33cca78acaa0aa0b00396612bee4 (patch)
tree960b0feb249ca46a0145790031e4b5eee2d2ae11 /modules/extra/httpd.h
parentccd41e7efe776d57e755dd69f927ae3ba3d8c85a (diff)
Rewrite/simplify some of m_httpd
Diffstat (limited to 'modules/extra/httpd.h')
-rw-r--r--modules/extra/httpd.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/modules/extra/httpd.h b/modules/extra/httpd.h
index bf6a9838d..015dacc28 100644
--- a/modules/extra/httpd.h
+++ b/modules/extra/httpd.h
@@ -107,7 +107,7 @@ class HTTPPage : public Base
virtual bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) = 0;
};
-class HTTPClient : public ClientSocket, public BufferedSocket, public BinarySocket, public Base
+class HTTPClient : public ClientSocket, public BinarySocket, public Base
{
protected:
void WriteClient(const Anope::string &message)
@@ -116,28 +116,13 @@ class HTTPClient : public ClientSocket, public BufferedSocket, public BinarySock
}
public:
- HTTPClient(ListenSocket *l, int f, const sockaddrs &a) : ClientSocket(l, a), BufferedSocket(), BinarySocket() { }
+ HTTPClient(ListenSocket *l, int f, const sockaddrs &a) : ClientSocket(l, a), BinarySocket() { }
virtual const Anope::string GetIP()
{
return this->clientaddr.addr();
}
- bool ProcessRead() anope_override
- {
- return BufferedSocket::ProcessRead();
- }
-
- bool ProcessWrite() anope_override
- {
- return !BinarySocket::ProcessWrite() || BinarySocket::write_buffer.empty() ? false : true;
- }
-
- void Write(const char *buffer, size_t l) anope_override
- {
- BinarySocket::Write(buffer, l);
- }
-
virtual void SendError(HTTPError err, const Anope::string &msg) = 0;
virtual void SendReply(HTTPReply *) = 0;
};