package mirage-net-flow

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

Parameters

module F : Mirage_flow_lwt.S

Signature

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 : ?mac:Macaddr.t -> F.flow -> t Lwt.t

connect ?mac f connects to the given flow. If mac is not specified, generate a random one.

OCaml

Innovation. Community. Security.