From fd2eafa7c67e0efdae7d3d18c39b97f724372f7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 6 Nov 2013 22:01:06 +0100 Subject: 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. --- src/command/CommandResult.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/command/CommandResult.hxx') 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 @@ -47,6 +47,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. */ -- cgit v1.2.3