package mirage-conduit

  1. Overview
  2. Docs
type t

Type of a vchan endpoint.

val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
type port = Vchan.Port.t

Type of a vchan port name.

val sexp_of_port : port -> Ppx_sexp_conv_lib.Sexp.t
val server : domid:int -> port:port -> ?read_size:int -> ?write_size:int -> unit -> t Lwt.t
val client : domid:int -> port:port -> unit -> t Lwt.t
include Mirage_flow_lwt.S with type flow = t and type 'a io = 'a Lwt.t and type buffer = Cstruct.t
type 'a io = 'a Lwt.t
type error
val pp_error : error Fmt.t
type write_error = private [>
  1. | Mirage_flow.write_error
]
val pp_write_error : write_error Fmt.t
type buffer = Cstruct.t
type flow = t
val read : flow -> (buffer Mirage_flow.or_eof, error) Pervasives.result io
val write : flow -> buffer -> (unit, write_error) Pervasives.result io
val writev : flow -> buffer list -> (unit, write_error) Pervasives.result io
val close : flow -> unit io
OCaml

Innovation. Community. Security.