package mirage-net-direct

  1. Overview
  2. Docs
type t
type mgr = Manager.t
type src = ipv4_src
type dst = ipv4_dst
val read : t -> Cstruct.t option Lwt.t
val write : t -> Cstruct.t -> unit Lwt.t
val writev : t -> Cstruct.t list -> unit Lwt.t
val close : t -> unit Lwt.t
val listen : mgr -> src -> (dst -> t -> unit Lwt.t) -> unit Lwt.t
val connect : mgr -> ?src:src -> dst -> (t -> unit Lwt.t) -> unit Lwt.t