diff options
-rw-r--r-- | include/inspsocket.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h index 8c93f884e..221b92cc6 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -119,6 +119,10 @@ class CoreExport StreamSocket : public EventHandler */ void CheckError(BufferedSocketError err); + /** Read data from the socket into the recvq, if successful call OnDataReady() + */ + void DoRead(); + protected: std::string recvq; public: @@ -126,10 +130,10 @@ class CoreExport StreamSocket : public EventHandler IOHook* GetIOHook() const; void AddIOHook(IOHook* hook); void DelIOHook(); - /** Dispatched from HandleEvent */ - virtual void DoRead(); - /** Dispatched from HandleEvent */ - virtual void DoWrite(); + + /** Flush the send queue + */ + void DoWrite(); /** Called by the socket engine on a read event */ |