diff options
author | madmaxoft <github@xoft.cz> | 2014-05-01 15:08:15 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-01 15:08:15 +0200 |
commit | 60850fe3e8da936d5b24460f33a1bf8f4d321ace (patch) | |
tree | 1720c81696ea344517d7d8b7456ca232445e421c /src/OSSupport | |
parent | Added a mention to run as admin. (diff) | |
download | cuberite-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 'src/OSSupport')
-rw-r--r-- | src/OSSupport/SocketThreads.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/OSSupport/SocketThreads.h b/src/OSSupport/SocketThreads.h index 679e374e1..944f5f3bc 100644 --- a/src/OSSupport/SocketThreads.h +++ b/src/OSSupport/SocketThreads.h @@ -63,8 +63,10 @@ public: // Force a virtual destructor in all subclasses: virtual ~cCallback() {} - /** Called when data is received from the remote party */ - virtual void DataReceived(const char * a_Data, size_t a_Size) = 0; + /** Called when data is received from the remote party. + SocketThreads does not care about the return value, others can use it for their specific purpose - + for example HTTPServer uses it to signal if the connection was terminated as a result of the data received. */ + virtual bool DataReceived(const char * a_Data, size_t a_Size) = 0; /** Called when data can be sent to remote party The function is supposed to *set* outgoing data to a_Data (overwrite) */ |