package mirage-net-direct

  1. Overview
  2. Docs
type t
type pcb
type listener
type connection = pcb * unit Lwt.t
val input : t -> src:Nettypes.ipv4_addr -> dst:Nettypes.ipv4_addr -> Cstruct.t -> unit Lwt.t
val connect : t -> dest_ip:Nettypes.ipv4_addr -> dest_port:int -> connection option Lwt.t
val listen : t -> int -> connection Lwt_stream.t * listener
val closelistener : listener -> unit
val close : pcb -> unit Lwt.t
val get_dest : pcb -> Nettypes.ipv4_addr * int
val read : pcb -> Cstruct.t option Lwt.t
val write_available : pcb -> int
val write_wait_for : pcb -> int -> unit Lwt.t
val write : pcb -> Cstruct.t -> unit Lwt.t
val writev : pcb -> Cstruct.t list -> unit Lwt.t
val write_nodelay : pcb -> Cstruct.t -> unit Lwt.t
val writev_nodelay : pcb -> Cstruct.t list -> unit Lwt.t
val create : Ipv4.t -> t * unit Lwt.t
OCaml

Innovation. Community. Security.