package hvsock

  1. Overview
  2. Docs
type error = [
  1. | `Unix of Unix.error
]
include Mirage_flow_lwt.SHUTDOWNABLE with type error := error
type 'a io = 'a Lwt.t
val pp_error : error Fmt.t
type write_error = private [>
  1. | Mirage_flow.write_error
]
val pp_write_error : write_error Fmt.t
type buffer = Cstruct.t
type flow
val read : flow -> (buffer Mirage_flow.or_eof, error) Pervasives.result io
val write : flow -> buffer -> (unit, write_error) Pervasives.result io
val writev : flow -> buffer list -> (unit, write_error) Pervasives.result io
val close : flow -> unit io
val shutdown_write : flow -> unit io
val shutdown_read : flow -> unit io
val read_into : flow -> Cstruct.t -> (unit Mirage_flow.or_eof, error) Pervasives.result Lwt.t
val connect : Hvsock.t -> flow
OCaml

Innovation. Community. Security.