summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-04-12 16:22:09 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-04-12 16:22:09 +0200
commita42246b2f19d429a01fc901b7f49893764676499 (patch)
tree88c60052eb3a28e42d7bad572a4c3ed0a559714d /include
parent612384b3d46d06eea6fd71ee6dc60471d0f9e3d1 (diff)
Change StreamSocket::DoRead() and DoWrite() to be non-virtual, make DoRead() private
Diffstat (limited to 'include')
-rw-r--r--include/inspsocket.h12
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
*/