package mirage-net-direct

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

Innovation. Community. Security.