summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer/HTTPConnection.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 15:08:15 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 15:08:15 +0200
commit60850fe3e8da936d5b24460f33a1bf8f4d321ace (patch)
tree1720c81696ea344517d7d8b7456ca232445e421c /src/HTTPServer/HTTPConnection.h
parentAdded a mention to run as admin. (diff)
downloadcuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar.gz
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar.bz2
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar.lz
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar.xz
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.tar.zst
cuberite-60850fe3e8da936d5b24460f33a1bf8f4d321ace.zip
Diffstat (limited to '')
-rw-r--r--src/HTTPServer/HTTPConnection.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/HTTPServer/HTTPConnection.h b/src/HTTPServer/HTTPConnection.h
index fc11f1ba6..6ea8a1ae8 100644
--- a/src/HTTPServer/HTTPConnection.h
+++ b/src/HTTPServer/HTTPConnection.h
@@ -91,9 +91,15 @@ protected:
// cSocketThreads::cCallback overrides:
- virtual void DataReceived (const char * a_Data, size_t a_Size) override; // Data is received from the client
- virtual void GetOutgoingData(AString & a_Data) override; // Data can be sent to client
- virtual void SocketClosed (void) override; // The socket has been closed for any reason
+ /** Data is received from the client.
+ Returns true if the connection has been closed as the result of parsing the data. */
+ virtual bool DataReceived(const char * a_Data, size_t a_Size) override;
+
+ /** Data can be sent to client */
+ virtual void GetOutgoingData(AString & a_Data) override;
+
+ /** The socket has been closed for any reason */
+ virtual void SocketClosed(void) override;
} ;
typedef std::vector<cHTTPConnection *> cHTTPConnections;