package qmp

  1. Overview
  2. Docs

Module Qmp_protocolSource

Sourcetype t

a connection to a running qemu

Sourceval connect : string -> t

connect path connects to a qemu exposing a QMP interface on the Unix domain socket at path

Sourceval negotiate : t -> unit

negotiate t performs the initial protocol negotiation, needed before any commands can be sent on the connection.

Sourceval to_fd : t -> Unix.file_descr

to_fd t returns a raw file descriptor suitable for Unix.select

Sourceval read : t -> Qmp.message

read t reads a QMP message from qemu

Sourceval write : t -> Qmp.message -> unit

write t writes a QMP message from qemu

Sourceval close : t -> unit

close t closes the connection

OCaml

Innovation. Community. Security.