package mirage-qubes

  1. Overview
  2. Docs

Parameters

Signature

include S.MSG_CHAN
type t
val recv : t -> (string * string) S.or_eof Lwt.t

Receive one packet (header and body)

val recv_fixed : t -> int -> string S.or_eof Lwt.t

Receive one packet of known size (no header)

val recv_raw : t -> string S.or_eof Lwt.t

Read a chunk of data from the stream. Blocks if no data is available yet.

val send : t -> string list -> unit S.or_eof Lwt.t

Send one or more packets (takes the mutex)

val client : domid:int -> port:Vchan_xen.port -> unit -> t Lwt.t

Create a client

val server : domid:int -> port:Vchan_xen.port -> unit -> t Lwt.t

Create a server

val disconnect : t -> unit Lwt.t
OCaml

Innovation. Community. Security.