Pi.STREAM_SOCKETinclude Flow.Pi.SOURCE with type t := tval read_methods : t Flow.read_method listinclude Flow.Pi.SINK with type t := tval copy : t -> src:_ Flow.source -> unitcopy 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