package qmp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

a connection to a running qemu

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

OCaml

Innovation. Community. Security.