package qmp
Module Qmp_protocol
val connect : string -> tconnect path connects to a qemu exposing a QMP interface on the Unix domain socket at path
val negotiate : t -> unitnegotiate t performs the initial protocol negotiation, needed before any commands can be sent on the connection.
val to_fd : t -> Unix.file_descrto_fd t returns a raw file descriptor suitable for Unix.select
val read : t -> Qmp.messageread t reads a QMP message from qemu
val write : t -> Qmp.message -> unitwrite t writes a QMP message from qemu
val close : t -> unitclose t closes the connection