mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
fix: need an implementation of available() for WebSocketImpl
This commit is contained in:
parent
89816c0ea2
commit
4e375945f9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user