package mirage-net-socket

  1. Overview
  2. Docs
module TCPv4 : sig ... end
type t
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 connect : Manager.t -> [> `TCPv4 of Nettypes.ipv4_src option * Nettypes.ipv4_dst * (t -> 'a Lwt.t) ] -> 'a Lwt.t
val listen : Manager.t -> [> `TCPv4 of Nettypes.ipv4_src * (Nettypes.ipv4_dst -> t -> unit Lwt.t) ] -> unit Lwt.t
OCaml

Innovation. Community. Security.