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; };