package mirage-net-direct

  1. Overview
  2. Docs
module TCPv4 : sig ... end
module Shmem : sig ... end
type t
val read_char : t -> char Lwt.t
val read_some : ?len:int -> t -> Cstruct.t Lwt.t
val read_stream : ?len:int -> t -> Cstruct.t Lwt_stream.t
val read_until : t -> char -> (bool * Cstruct.t) Lwt.t
val read_line : t -> Cstruct.t list Lwt.t
val write_char : t -> char -> unit
val write_string : t -> string -> int -> int -> unit
val write_buffer : t -> Cstruct.t -> unit
val write_line : t -> string -> unit
val flush : t -> 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 Nettypes.ipv4_src option * Nettypes.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 Nettypes.ipv4_src * (Nettypes.ipv4_dst -> t -> unit Lwt.t) ] -> unit Lwt.t
OCaml

Innovation. Community. Security.