package mirage-net

  1. Overview
  2. Docs
type mgr
type t
type src
type dst
val read_char : t -> char Lwt.t
val read_until : t -> char -> (bool * OS.Io_page.t) Lwt.t
val read_some : ?len:int -> t -> OS.Io_page.t Lwt.t
val read_stream : ?len:int -> t -> OS.Io_page.t Lwt_stream.t
val read_line : t -> OS.Io_page.t list Lwt.t
val write_char : t -> char -> unit
val write_string : t -> string -> int -> int -> unit
val write_buffer : t -> OS.Io_page.t -> unit
val write_line : t -> string -> unit
val flush : t -> 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.