event/FullyBufferedSocket: add method GetOutputMaxSize()

This commit is contained in:
Max Kellermann 2021-01-21 16:49:37 +01:00
parent 056ab199ab
commit 3b3c1d466d
1 changed files with 4 additions and 0 deletions

View File

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