Docs GODI Archive
Projects Blog Knowledge

Look up function:

(e.g. "List.find" or "keysym")
More options

Class Netchannels.input_descr


class input_descr : ?blocking:bool -> ?start_pos_in:int -> Unix.file_descr -> raw_in_channel
Creates a raw_in_channel for the passed file descriptor, which must be open for reading.

The pos_in method returns logical positions, i.e. it counts the number of read octets. It is not tried to determine the real file position.

The method close_in also closes the file descriptor.

This class also supports Win32 proxy descriptors referring to an input channel.


blocking : Whether the channel waits for data if it is not possible to read from the (non-blocking) descriptor. Defaults to true.
start_pos_in : The position to which pos_in is initialized when the channel is created, by default 0

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml