summaryrefslogtreecommitdiff
path: root/lib/server/SocketStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server/SocketStream.h')
-rw-r--r--lib/server/SocketStream.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/server/SocketStream.h b/lib/server/SocketStream.h
index 5caaacfd..7f1cb741 100644
--- a/lib/server/SocketStream.h
+++ b/lib/server/SocketStream.h
@@ -56,6 +56,15 @@ private:
tOSSocketHandle mSocketHandle;
bool mReadClosed;
bool mWriteClosed;
+
+protected:
+ off_t mBytesRead;
+ off_t mBytesWritten;
+
+public:
+ off_t GetBytesRead() const {return mBytesRead;}
+ off_t GetBytesWritten() const {return mBytesWritten;}
+ void ResetCounters() {mBytesRead = mBytesWritten = 0;}
};
#endif // SOCKETSTREAM__H