Mirage_flow_lwt.ProxySourcemodule Clock : Mirage_clock.MCLOCKmodule A : SHUTDOWNABLEmodule B : SHUTDOWNABLEThe type for proxy errors.
val proxy :
Clock.t ->
A.flow ->
B.flow ->
(Mirage_flow.stats * Mirage_flow.stats, error) result Lwt.tproxy clock 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.