From 4e375945f9268dc13408853d29b657d0466a0cf5 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Fri, 18 Sep 2015 22:42:49 +0200 Subject: [PATCH] fix: need an implementation of available() for WebSocketImpl --- Net/include/Poco/Net/WebSocketImpl.h | 1 + Net/src/WebSocketImpl.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Net/include/Poco/Net/WebSocketImpl.h b/Net/include/Poco/Net/WebSocketImpl.h index b631a5d2e..31857c162 100644 --- a/Net/include/Poco/Net/WebSocketImpl.h +++ b/Net/include/Poco/Net/WebSocketImpl.h @@ -57,6 +57,7 @@ public: virtual int sendTo(const void* buffer, int length, const SocketAddress& address, int flags = 0); virtual int receiveFrom(void* buffer, int length, SocketAddress& address, int flags = 0); virtual void sendUrgent(unsigned char data); + virtual int available(); virtual bool secure() const; virtual void setSendTimeout(const Poco::Timespan& timeout); virtual Poco::Timespan getSendTimeout(); diff --git a/Net/src/WebSocketImpl.cpp b/Net/src/WebSocketImpl.cpp index 4ed6354d6..a9e75817f 100644 --- a/Net/src/WebSocketImpl.cpp +++ b/Net/src/WebSocketImpl.cpp @@ -322,5 +322,11 @@ Poco::Timespan WebSocketImpl::getReceiveTimeout() return _pStreamSocketImpl->getReceiveTimeout(); } + +int WebSocketImpl::available() +{ + return _pStreamSocketImpl->available(); +} + } } // namespace Poco::Net