From d8ac63cd83293ab07659932d5ee6b83d7570bb57 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 8 Aug 2016 14:35:00 +0200 Subject: Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ() --- include/inspsocket.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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: -- cgit v1.2.3