Module Tls_io.IoSource

Sourcetype socket = descriptor
Sourcetype addr = Unix.sockaddr
Sourceval read : socket -> Bigstringaf.t -> off:int -> len:int -> [ `Eof | `Ok of int ] Lwt.t

The region (off, off + len) is where read bytes can be written to

Sourceval writev : socket -> Faraday.bigstring Faraday.iovec list -> [ `Closed | `Ok of int ] Lwt.t
Sourceval shutdown_receive : socket -> unit
Sourceval close : socket -> unit Lwt.t