Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val connect : string -> t
connect path
connects to a qemu exposing a QMP interface on the Unix domain socket at path
val negotiate : t -> unit
negotiate t
performs the initial protocol negotiation, needed before any commands can be sent on the connection.
val to_fd : t -> Unix.file_descr
to_fd t
returns a raw file descriptor suitable for Unix.select
val read : t -> Qmp.message
read t
reads a QMP message from qemu
val write : t -> Qmp.message -> unit
write t
writes a QMP message from qemu
val close : t -> unit
close t
closes the connection