summaryrefslogtreecommitdiff
path: root/src/client/Client.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-01-21 16:27:52 +0100
committerMax Kellermann <max@musicpd.org>2021-01-21 17:17:10 +0100
commit995aafe9cc511430bff7a7a690df70998f4bb025 (patch)
treeb2f570aba54bb10f1b238922e1212766d1cc1a25 /src/client/Client.hxx
parent6e33566ceeb7e6c4454e44efd203b2e2fcd10feb (diff)
protocol: add command "binarylimit"
Increasing the protocol version to 0.22.4 to allow clients to detect this feature. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1038
Diffstat (limited to 'src/client/Client.hxx')
-rw-r--r--src/client/Client.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx
index d19d08760..deb4b8caa 100644
--- a/src/client/Client.hxx
+++ b/src/client/Client.hxx
@@ -84,6 +84,12 @@ public:
*/
TagMask tag_mask = TagMask::All();
+ /**
+ * The maximum number of bytes transmitted in a binary
+ * response. Can be changed with the "binarylimit" command.
+ */
+ size_t binary_limit = 8192;
+
private:
static constexpr size_t MAX_SUBSCRIPTIONS = 16;
@@ -122,6 +128,7 @@ public:
~Client() noexcept;
using FullyBufferedSocket::GetEventLoop;
+ using FullyBufferedSocket::GetOutputMaxSize;
gcc_pure
bool IsExpired() const noexcept {