aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/event')
-rw-r--r--src/event/BufferedSocket.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/event/BufferedSocket.hxx b/src/event/BufferedSocket.hxx
index 31d6c3c57..db920f981 100644
--- a/src/event/BufferedSocket.hxx
+++ b/src/event/BufferedSocket.hxx
@@ -101,7 +101,15 @@ protected:
CLOSED,
};
- virtual InputResult OnSocketInput(const void *data, size_t length) = 0;
+ /**
+ * Data has been received on the socket.
+ *
+ * @param data a pointer to the beginning of the buffer; the
+ * buffer may be modified by the method while it processes the
+ * data
+ */
+ virtual InputResult OnSocketInput(void *data, size_t length) = 0;
+
virtual void OnSocketError(Error &&error) = 0;
virtual void OnSocketClosed() = 0;