package mirage-vnetif

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a io = 'a Lwt.t
type buffer = Cstruct.t
type id = int
type macaddr = Macaddr.t
type t
type error = [
  1. | `Unknown of string
  2. | `Disconnected
  3. | `Unimplemented
]
val register : t -> [ `Ok of id | `Error of error ]
val unregister : t -> id -> unit io
val mac : t -> id -> macaddr
val write : t -> id -> buffer -> unit io
val writev : t -> id -> buffer list -> unit io
val set_listen_fn : t -> id -> (buffer -> unit io) -> unit
val unregister_and_flush : t -> id -> unit io
OCaml

Innovation. Community. Security.