-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve doc/protocol description #340
Comments
Multi-line responses should be multi-line in the documentation as well - i.e. no |
Alright, 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 :) EDIT: Alright, was just the simple matter of a colon infront of each response object.
https://www.musicpd.org/doc/protocol/command_reference.html 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 |
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?
client: status\n server: volume 24\n repeat 0\n OK\n
The mpc failed to parse the response. After? The same thing.
Do I format the response like this maybe?
status volume 24\n status repeat 0\n OK\n
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
https://www.musicpd.org/doc/protocol/command_lists.html
The text was updated successfully, but these errors were encountered: