From 8b05455545c664465ce62d2c90c2b1b7fe8f93e8 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 17 Dec 2014 15:31:13 -0500 Subject: [PATCH] Cancel added --- Streaming.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Streaming.h b/Streaming.h index ff34df9a..ed5a9ba7 100644 --- a/Streaming.h +++ b/Streaming.h @@ -102,6 +102,7 @@ namespace stream void AsyncReceive (const Buffer& buffer, ReceiveHandler handler, int timeout = 0); void Close (); + void Cancel () { m_ReceiveTimer.cancel (); }; size_t GetNumSentBytes () const { return m_NumSentBytes; }; size_t GetNumReceivedBytes () const { return m_NumReceivedBytes; };