Parameters
Signature
Sourcetype error = [ | `Unix of Unix.error
] Sourcetype flow = {fd : RW.t;read_buffers_max : int;read_max : int;mutable read_buffers : Cstruct.t list;mutable read_buffers_len : int;read_buffers_m : Mutex.t;read_buffers_c : Condition.t;read_histogram : Histogram.t;mutable write_buffers : Cstruct.t list;mutable write_buffers_len : int;write_buffers_m : Mutex.t;write_buffers_c : Condition.t;write_buffers_max : int;write_max : int;mutable write_flushed : bool;write_histogram : Histogram.t;mutable closed : bool;mutable shutdown_read : bool;mutable read_thread_exit : bool;mutable shutdown_write : bool;mutable shutdown_write_complete : bool;mutable write_error : bool;
} Sourceval connect : ?message_size:int -> ?buffer_size:int -> RW.t -> flow Sourceval wait_for_data_or_eof : flow -> int -> unit Sourceval read_into : 'a -> 'b -> 'c