Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = Socket.stream_socket
val connect :
Addr.stream_addr ->
([ `Connected of t | `In_progress of t ], [> `Noop ]) Rio.io_result
val close : t -> unit
val pp : Stdlib.Format.formatter -> t -> unit
val read :
t ->
?pos:int ->
?len:int ->
bytes ->
(int, [> `Noop ]) Rio.io_result
val read_vectored : t -> Rio.Iovec.t -> (int, [> `Noop ]) Rio.io_result
val sendfile :
t ->
file:Fd.t ->
off:int ->
len:int ->
(int, [> `Noop ]) Rio.io_result
val write :
t ->
?pos:int ->
?len:int ->
bytes ->
(int, [> `Noop ]) Rio.io_result
val write_vectored : t -> Rio.Iovec.t -> (int, [> `Noop ]) Rio.io_result