Netchannels.compl_in_channel
Further methods usually supported by ocamlnet channel implementations. * These methods are only reasonable when the channel is of blocking type, * i.e. waits for input when not enough data are available to perform an * operation. Implementations may choose to fail when they detect the * channel is non-blocking.
Reads exactly as many octets from the channel as the second int
* argument specifies. The octets are placed at the position denoted * by the first int
argument into the string. * * When the end of the channel is reached before the passed number of * octets are read, the exception End_of_file
is raised.
really_input_string ic len
reads len
characters from channel ic
and returns them in a new string. Raise End_of_file
if the end of file is reached before len
characters have been read.
Reads the next line from the channel. When the channel is already * at the end before input_line
is called, the exception End_of_file
* is raised.