aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/CommandResult.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-06 22:01:06 +0100
committerMax Kellermann <max@duempel.org>2013-11-06 22:01:06 +0100
commitfd2eafa7c67e0efdae7d3d18c39b97f724372f7e (patch)
tree391bc672c8ec24a728a163ce9ed8026287d0f039 /src/command/CommandResult.hxx
parent422b8472fec9443250895a281b6b0a20190daa22 (diff)
downloadmpd-fd2eafa7c67e0efdae7d3d18c39b97f724372f7e.tar.gz
mpd-fd2eafa7c67e0efdae7d3d18c39b97f724372f7e.tar.xz
mpd-fd2eafa7c67e0efdae7d3d18c39b97f724372f7e.zip
ClientRead: "close" flushes the output buffer
Add a new CommandResult code called "FINISH" which, unlike "CLOSE", will attempt to flush the output buffer. This is a one-shot attempt; it will do one write, and not try again.
Diffstat (limited to 'src/command/CommandResult.hxx')
-rw-r--r--src/command/CommandResult.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command/CommandResult.hxx b/src/command/CommandResult.hxx
index bbc16146b..9916b70cb 100644
--- a/src/command/CommandResult.hxx
+++ b/src/command/CommandResult.hxx
@@ -48,6 +48,12 @@ enum class CommandResult {
ERROR,
/**
+ * The client has asked MPD to close the connection. MPD will
+ * flush the remaining output buffer first.
+ */
+ FINISH,
+
+ /**
* The connection to this client shall be closed.
*/
CLOSE,