event/FullyBufferedSocket: add method GetOutputMaxSize()

This commit is contained in:
Max Kellermann 2021-01-21 16:49:37 +01:00
parent 056ab199ab
commit 3b3c1d466d

View File

@ -45,6 +45,10 @@ public:
BufferedSocket::Close(); BufferedSocket::Close();
} }
std::size_t GetOutputMaxSize() const noexcept {
return output.max_size();
}
private: private:
/** /**
* @return the number of bytes written to the socket, 0 if the * @return the number of bytes written to the socket, 0 if the