Technology
 

MusicPlayerDaemonAckResponses

From Music Player Daemon Community Wiki

[edit] ACK Responses

Syntax

ACK [<int errorid>@<int position>] {command} description
where:
  • errorid
an integer to indicate witch kind of error occured. The following constant names for this value are taken from ack.h:

ACK_ERROR_NOT_LIST = 1
ACK_ERROR_ARG = 2
ACK_ERROR_PASSWORD = 3
ACK_ERROR_PERMISSION = 4
ACK_ERROR_UNKNOWN = 5
ACK_ERROR_NO_EXIST = 50
ACK_ERROR_PLAYLIST_MAX = 51
ACK_ERROR_SYSTEM = 52
ACK_ERROR_PLAYLIST_LOAD = 53
ACK_ERROR_UPDATE_ALREADY = 54
ACK_ERROR_PLAYER_SYNC = 55
ACK_ERROR_EXIST = 56

  • position
indicates the position in a command_list, if the command, that caused the response was part of such a list. Otherwise position is 0.
  • description
a short explanation of the error. Maybe void.


Example Session

~$ telnet localhost 6600
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
OK MPD 0.13.0
pay
ACK [5@0] {} unknown command "pay"
play
OK
play "Gilberto Santa Rosa - Perdoname.mp3"
ACK [2@0] {play} need a positive integer
play 1000
ACK [50@0] {play} song doesn't exist: "1000"
play 10
OK
command_list_begin
play
play
pay
play
command_list_end
ACK [5@2] {} unknown command "pay"

--Johanng 13:52, 23 April 2008 (UTC)