package mirage-unix

  1. Overview
  2. Docs
type t
type id
val string_of_id : id -> string
val id_of_string : string -> id
type dev_type =
  1. | PCAP
  2. | ETH
exception Device_down of id
val get_writebuf : t -> Cstruct.t Lwt.t
val id : t -> id
val mac : t -> string
val add_vif : id -> dev_type -> Unix.file_descr -> unit
val create : unit -> t list Lwt.t
val listen : t -> (Cstruct.t -> unit Lwt.t) -> unit Lwt.t
val destroy : t -> unit Lwt.t
val write : t -> Cstruct.t -> unit Lwt.t
val writev : t -> Cstruct.t list -> unit Lwt.t
OCaml

Innovation. Community. Security.