Pi.STREAM_SOCKETinclude Eio.Net.Pi.STREAM_SOCKETinclude Eio.Flow.Pi.SOURCE with type t := tval read_methods : t Eio.Flow.read_method listval single_read : t -> Cstruct.t -> intinclude Eio.Flow.Pi.SINK with type t := tval single_write : t -> Cstruct.t list -> intval copy : t -> src:_ Eio.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.
include Eio.Net.Pi.SOCKET with type t := tval setsockopt : t -> 'a Eio.Net.Sockopt.t -> 'a -> unitval getsockopt : t -> 'a Eio.Net.Sockopt.t -> 'aval close : t -> unitval recv_msg_with_fds :
t ->
sw:Eio.Std.Switch.t ->
max_fds:int ->
Cstruct.t list ->
int * Fd.t list