package mirage-qubes

  1. Overview
  2. Docs

Module Msg_chan.MakeSource

Parameters

Signature

include S.MSG_CHAN
Sourcetype t
Sourceval recv : t -> (string * string) S.or_eof Lwt.t

Receive one packet (header and body)

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

Receive one packet of known size (no header)

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

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

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

Send one or more packets (takes the mutex)

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

Create a client

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

Create a server

Sourceval disconnect : t -> unit Lwt.t
OCaml

Innovation. Community. Security.