package hvsock

  1. Overview
  2. Docs
include V1_LWT.FLOW
type 'a io = 'a Lwt.t
type buffer = Cstruct.t
type flow
type error
val error_message : error -> string
val read : flow -> [ `Eof | `Error of error | `Ok of buffer ] io
val write : flow -> buffer -> [ `Eof | `Error of error | `Ok of unit ] io
val writev : flow -> buffer list -> [ `Eof | `Error of error | `Ok of unit ] io
val close : flow -> unit io
val connect : Hvsock.t -> flow
val read_into : flow -> Cstruct.t -> [ `Eof | `Error of error | `Ok of unit ] Lwt.t
OCaml

Innovation. Community. Security.