summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-08 14:35:00 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-08 14:35:00 +0200
commitd8ac63cd83293ab07659932d5ee6b83d7570bb57 (patch)
tree84f77289cd0d0f38b218daaccfa2dd07f4a02309 /include
parenteef55acb1dbb2ae6c0202fec54e12506c064f892 (diff)
Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ()
Diffstat (limited to 'include')
-rw-r--r--include/inspsocket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index 72fb03d58..7b913ec56 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -228,6 +228,12 @@ class CoreExport StreamSocket : public EventHandler
*/
void DoRead();
+ /** Send as much data contained in a SendQueue object as possible.
+ * All data which successfully sent will be removed from the SendQueue.
+ * @param sq SendQueue to flush
+ */
+ void FlushSendQ(SendQueue& sq);
+
protected:
std::string recvq;
public: