package mirage-net

  1. Overview
  2. Docs
type t
type mgr
type src
type 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 -> 'a Lwt.t) -> 'a Lwt.t
OCaml

Innovation. Community. Security.