Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve doc/protocol description #340
Working on a server using the MPD protocol but can't find anything actually mentioning nor showing a single example of a successful command -> response transaction, specifically how and when the server should format and send its response.
How do I format a simple response to a command requesting the status? Before the OK?
The mpc failed to parse the response. After? The same thing.
Do I format the response like this maybe?
When and how do I respond to a command_ok_list? Before or directly after a list_OK? After the last list_OK?
It's nice with an ACK example on the page named response_syntax, but at least the basic examples or for that matter, any mention of how the server should respond to a command requiring information wouldn't hurt.
And I really like
Multi-line responses should be multi-line in the documentation as well - i.e. no
Lets say MPC for example sends,
Should the server response look like this?
I'd be happy to help rewrite it when I understand the basics :)
Alright, was just the simple matter of a colon infront of each response object.
This line aren't really clear whether it just describes the volume value or actually shows the response format and value with that colon ^^
Will get to rewrite the protocol docs later on this month if you want.
The "status" response is multi-line; each line describes one attribute as described in the documentation; format is