Module Mpd.Client
val initialize : Connection.t -> tInitialize the client with a connection.
val send_request : t -> string -> Protocol.responseval send_command : t -> string -> Protocol.responseval mpd_banner : t -> stringReturn the mpd banner that the server send at the first connection of the client.
val status : t -> (Status.t, string) Stdlib.resultCreate a status request and returns the status under a Mpd.Status.t type if no error occurs.
val ping : t -> Protocol.responseDoes nothing but return "OK".
val password : t -> string -> Protocol.responseThis is used for authentication with the server. PASSWORD is simply the plaintext password.
val close : t -> unitClose the connection to MPD. MPD will try to send the remaining output buffer before it actually closes the connection, but that cannot be guaranteed. This command will not generate a response. This function is a wrapper to the "close" command of the Mpd protocol, this means that it first send the "close" command and it close the connection at the socket level.
val tagtypes : t -> string listShow a list of available tag types. It is an intersection of the metadata_to_use setting and this client's tag mask. About the tag mask: each client can decide to disable any number of tag types, which will be omitted from responses to this client. That is a good idea, because it makes responses smaller. The following tagtypes sub commands configure this list.