package mirage-unix

  1. Overview
  2. Docs
type t
type id = string
type dev_type =
  1. | PCAP
  2. | ETH
type callback = id -> t -> unit Lwt.t
exception Device_down of id
val get_writebuf : t -> Cstruct.t Lwt.t
val mac : t -> string
val ethid : t -> id
val add_vif : id -> dev_type -> Unix.file_descr -> unit
val create : callback -> unit 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.