mirage-qubes

Implementations of various Qubes protocols for MirageOS
Library mirage-qubes
Module type Qubes . S . FLOW
type t
val write : t -> Cstruct.t -> unit Lwt.t

Write to stdout

val writef : t -> ( 'a, unit, string, unit Lwt.t ) format4 -> 'a

Write a formatted line to stdout.

val ewrite : t -> Cstruct.t -> unit Lwt.t

Write to stderr

val ewritef : t -> ( 'a, unit, string, unit Lwt.t ) format4 -> 'a

Write a formatted line to stderr.

val read : t -> [ `Ok of Cstruct.t | `Eof ] Lwt.t

Read from stdin.

val read_line : t -> [ `Ok of string | `Eof ] Lwt.t

Read a complete line from stdin.