package tcpip

  1. Overview
  2. Docs
type buffer = Cstruct.t
type flow = Flow.flow
type 'a io = 'a Lwt.t
type 'a io_stream = 'a Lwt_stream.t
val create : flow -> t
val to_flow : t -> flow
val read_char : t -> char io
val read_until : t -> char -> (bool * buffer) io
val read_some : ?len:int -> t -> buffer io
val read_stream : ?len:int -> t -> buffer io_stream
val read_line : t -> buffer list io
val write_char : t -> char -> unit
val write_string : t -> string -> int -> int -> unit
val write_buffer : t -> buffer -> unit
val write_line : t -> string -> unit
val flush : t -> unit io
val close : t -> unit io
OCaml

Innovation. Community. Security.