Module Mpd.Connection_lwt
val initialize : string -> int -> t Lwt.tCreate the connection in a Lwt thread, throws an exception Mpd_Lwt_unix_exn of string when an error occurs.
val hostname : t -> string Lwt.tGet the hostname of the current connection.
val port : t -> int Lwt.tGet the port of the current connection.
val buffer : t -> string Lwt.tGet the buffer used by the connection.
val recvbytes : t -> Stdlib.Bytes.t Lwt.tRead from the connection.
val write : t -> string -> int Lwt.tWrite in a Mpd connection throught a Lwt thread. It fails with an exception Mpd_Lwt_unix_exn of string.
val close : t -> unit Lwt.tClose the connection.