mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
fix: need an implementation of available() for WebSocketImpl
This commit is contained in:
@@ -57,6 +57,7 @@ public:
|
|||||||
virtual int sendTo(const void* buffer, int length, const SocketAddress& address, int flags = 0);
|
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 int receiveFrom(void* buffer, int length, SocketAddress& address, int flags = 0);
|
||||||
virtual void sendUrgent(unsigned char data);
|
virtual void sendUrgent(unsigned char data);
|
||||||
|
virtual int available();
|
||||||
virtual bool secure() const;
|
virtual bool secure() const;
|
||||||
virtual void setSendTimeout(const Poco::Timespan& timeout);
|
virtual void setSendTimeout(const Poco::Timespan& timeout);
|
||||||
virtual Poco::Timespan getSendTimeout();
|
virtual Poco::Timespan getSendTimeout();
|
||||||
|
@@ -322,5 +322,11 @@ Poco::Timespan WebSocketImpl::getReceiveTimeout()
|
|||||||
return _pStreamSocketImpl->getReceiveTimeout();
|
return _pStreamSocketImpl->getReceiveTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int WebSocketImpl::available()
|
||||||
|
{
|
||||||
|
return _pStreamSocketImpl->available();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} } // namespace Poco::Net
|
} } // namespace Poco::Net
|
||||||
|
Reference in New Issue
Block a user