Skip to content

Commit

Permalink
Change StreamSocket::DoRead() and DoWrite() to be non-virtual, make D…
Browse files Browse the repository at this point in the history
…oRead() private
  • Loading branch information
attilamolnar committed Apr 12, 2015
1 parent 612384b commit a42246b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/inspsocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,21 @@ 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:
StreamSocket() : iohook(NULL), sendq_len(0) {}
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
*/
Expand Down

0 comments on commit a42246b

Please sign in to comment.