class socket_descr :Creates a
?blocking:bool -> ?start_pos_in:int -> ?start_pos_out:int -> Unix.file_descr ->
raw_io_channelfor the passed socket descriptor, which must be open for reading and writing, and not yet shut down in either direction. The
raw_io_channelis used to represent a bidirectional channel:
close_outshuts the socket down for sending,
close_inshuts the socket down for reading, and when both directions are down, the descriptor is closed.
pos_out methods returns logical positions.
This class supports sockets and Win32 named pipes. Note, however, that for Win32 named pipes it is not possible to shut down only one direction of the bidirectional data channel.
start_pos_in: The position to which
pos_inis initialized when the channel is created, by default 0
start_pos_out: The position to which
pos_outis initialized when the channel is created, by default 0