diff options
author | Max Kellermann <max@musicpd.org> | 2021-01-21 16:49:37 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-01-21 16:49:38 +0100 |
commit | 3b3c1d466d0d3de16697269b72c289d55935402b (patch) | |
tree | aed896e4367e34b4db7c4afe57ff67efd0816714 /src/event/FullyBufferedSocket.hxx | |
parent | 056ab199abb302297529812834e4f36a1d91149c (diff) |
event/FullyBufferedSocket: add method GetOutputMaxSize()
Diffstat (limited to 'src/event/FullyBufferedSocket.hxx')
-rw-r--r-- | src/event/FullyBufferedSocket.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/FullyBufferedSocket.hxx b/src/event/FullyBufferedSocket.hxx index 1d6ee6046..995deb47e 100644 --- a/src/event/FullyBufferedSocket.hxx +++ b/src/event/FullyBufferedSocket.hxx @@ -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 |