package riot

  1. Overview
  2. Docs
val connect : ?timeout:int64 -> Addr.stream_addr -> (t, [> `Noop ]) IO.io_result
val close : t -> unit
val pp : Stdlib.Format.formatter -> t -> unit
val read : t -> ?pos:int -> ?len:int -> bytes -> (int, [> `Noop ]) IO.io_result
val read_vectored : t -> IO.Iovec.t -> (int, [> `Noop ]) IO.io_result
val sendfile : t -> file:Fd.t -> off:int -> len:int -> (int, [> `Noop ]) IO.io_result
val write : t -> ?pos:int -> ?len:int -> bytes -> (int, [> `Noop ]) IO.io_result
val write_vectored : t -> IO.Iovec.t -> (int, [> `Noop ]) IO.io_result
val receive : ?timeout:int64 -> bufs:IO.Iovec.t -> t -> (int, [> `Noop ]) IO.io_result
val send : ?timeout:int64 -> bufs:IO.Iovec.t -> t -> (int, [> `Noop ]) IO.io_result
val to_reader : ?timeout:int64 -> t -> t IO.Reader.t
val to_writer : ?timeout:int64 -> t -> t IO.Writer.t
OCaml

Innovation. Community. Security.