# Class Netchannels.input_descr

    class input_descr : ?blocking:bool -> ?start_pos_in:int -> ?fd_style:Netsys.fd_style -> 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
`fd_style` : The descriptor style. If omitted, it is automatically determined if possible.