package mirage-flow-combinators

  1. Overview
  2. Docs

Parameters

module Clock : Mirage_clock.MCLOCK
module A : Mirage_flow.S
module B : Mirage_flow.S

Signature

type error

The type for proxy errors.

val pp_error : error Fmt.t

pp_error pretty-prints errors.

val proxy : A.flow -> B.flow -> (stats * stats, error) Stdlib.result Lwt.t

proxy a b proxies data between a and b until both sides close. If either direction encounters an error then so will proxy. If both directions succeed, then return I/O statistics.

OCaml

Innovation. Community. Security.