package mirage-net-direct

  1. Overview
  2. Docs
type t
type callback = src:Nettypes.ipv4_addr -> dst:Nettypes.ipv4_addr -> source_port:int -> Cstruct.t -> unit Lwt.t
val create : Ipv4.t -> t * unit Lwt.t
val listen : t -> int -> callback -> unit Lwt.t
val write : source_port:int -> dest_ip:Nettypes.ipv4_addr -> dest_port:int -> t -> Cstruct.t -> unit Lwt.t
val writev : source_port:int -> dest_ip:Nettypes.ipv4_addr -> dest_port:int -> t -> Cstruct.t list -> unit Lwt.t
OCaml

Innovation. Community. Security.