package mirage-net-unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Implementation of the network interface for Unix backends.

include Mirage_net_lwt.S
type error = private [>
  1. | Mirage_device.error
]
val pp_error : error Fmt.t
type page_aligned_buffer = Io_page.t
type buffer = Cstruct.t
type macaddr = Macaddr.t
type 'a io = 'a Lwt.t
type t
val disconnect : t -> unit io
val write : t -> buffer -> (unit, error) Stdlib.result io
val writev : t -> buffer list -> (unit, error) Stdlib.result io
val listen : t -> (buffer -> unit io) -> (unit, error) Stdlib.result io
val mac : t -> macaddr
val get_stats_counters : t -> Mirage_net.stats
val reset_stats_counters : t -> unit
val connect : string -> t Lwt.t

connect tap connects to the given tap interface.

val fd : t -> Lwt_unix.file_descr

fd t is t's underneath file descriptor.

OCaml

Innovation. Community. Security.