Skip to content

Commit 162c8ec

Browse files
committed
fix: need an implementation of available() for WebSocketImpl
1 parent a7bb898 commit 162c8ec

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Net/include/Poco/Net/WebSocketImpl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class Net_API WebSocketImpl: public StreamSocketImpl
6161
virtual int sendTo(const void* buffer, int length, const SocketAddress& address, int flags = 0);
6262
virtual int receiveFrom(void* buffer, int length, SocketAddress& address, int flags = 0);
6363
virtual void sendUrgent(unsigned char data);
64+
virtual int available();
6465
virtual bool secure() const;
6566
virtual void setSendTimeout(const Poco::Timespan& timeout);
6667
virtual Poco::Timespan getSendTimeout();

Net/src/WebSocketImpl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,5 +340,11 @@ Poco::Timespan WebSocketImpl::getReceiveTimeout()
340340
return _pStreamSocketImpl->getReceiveTimeout();
341341
}
342342

343+
344+
int WebSocketImpl::available()
345+
{
346+
return _pStreamSocketImpl->available();
347+
}
348+
343349

344350
} } // namespace Poco::Net

0 commit comments

Comments
 (0)