diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-08 14:35:00 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-08 14:35:00 +0200 |
commit | d8ac63cd83293ab07659932d5ee6b83d7570bb57 (patch) | |
tree | 84f77289cd0d0f38b218daaccfa2dd07f4a02309 /include | |
parent | eef55acb1dbb2ae6c0202fec54e12506c064f892 (diff) |
Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ()
Diffstat (limited to 'include')
-rw-r--r-- | include/inspsocket.h | 6 |
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: |