Pi.STREAM_SOCKET
include Flow.Pi.SOURCE with type t := t
val read_methods : t Flow.read_method list
include Flow.Pi.SINK with type t := t
val copy : t -> src:_ Flow.source -> unit
copy t ~src
allows for optimising copy operations.
If you have no optimisations, you can use Eio.Flow.Pi.simple_copy
to implement this using single_write
.
val close : t -> unit