Version 1.2.0
This is a preliminary version of the documentation. Help us to improve it by filling tickets. We are looking for native english speakers to proof read the documentation. Contact us!
module Lwt_chan:Modulesig..end
Lwt_chan: cooperative, Pervasives-like, I/O functionsLwt_io module deprecates this module.typein_channel =Lwt_io.input_channel
val in_channel_of_descr : Lwt_unix.file_descr -> in_channelval make_in_channel : ?close:(unit -> unit Lwt.t) ->
(string -> int -> int -> int Lwt.t) -> in_channelmake_in_channel read creates an input channel from the read function. read s ofs len should (cooperatively) read len bytes from the source, and put them in s, at offset ofs, and return the number of bytes effectively read. If provided, close will be called by close_in. By default, close_in does not do anything.val input_line : in_channel -> string Lwt.tval input_value : in_channel -> 'a Lwt.tval input : in_channel -> string -> int -> int -> int Lwt.tval really_input : in_channel -> string -> int -> int -> unit Lwt.tval input_char : in_channel -> char Lwt.tval input_binary_int : in_channel -> int Lwt.tval open_in_gen : Unix.open_flag list -> int -> string -> in_channelval open_in : string -> in_channelval close_in : in_channel -> unit Lwt.ttypeout_channel =Lwt_io.output_channel
val out_channel_of_descr : Lwt_unix.file_descr -> out_channelval make_out_channel : ?close:(unit -> unit Lwt.t) ->
(string -> int -> int -> int Lwt.t) -> out_channelmake_out_channel write creates an output channel from the write function. write s ofs len should (cooperatively) write len bytes from s, starting at offset ofs, to the backend, and return the number of bytes effectively written. If provided, close will be called by close_out. By default, close_out does not do anything.val output : out_channel -> string -> int -> int -> unit Lwt.tval flush : out_channel -> unit Lwt.tval output_string : out_channel -> string -> unit Lwt.tval output_value : out_channel -> 'a -> unit Lwt.tval output_char : out_channel -> char -> unit Lwt.tval output_binary_int : out_channel -> int -> unit Lwt.tval open_out_gen : Unix.open_flag list -> int -> string -> out_channelval open_out : string -> out_channelval close_out : out_channel -> unit Lwt.tval open_connection : Unix.sockaddr -> (in_channel * out_channel) Lwt.t