From a42246b2f19d429a01fc901b7f49893764676499 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 12 Apr 2015 16:22:09 +0200 Subject: Change StreamSocket::DoRead() and DoWrite() to be non-virtual, make DoRead() private --- include/inspsocket.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include/inspsocket.h') 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 */ -- cgit v1.2.3