class receiver :
src:Unix.file_descr -> dst:#async_out_channel -> ?close_src:bool -> ?close_dst:bool -> Unixqueue.event_system ->
This engine copies all data from the
src file descriptor to the
dst output channel. The engine attaches immediately to the
event system, and detaches automatically.
By default, both the file descriptor and the output channel are closed when the engine stops operation, either successfully or because of an error.
The semantics of the engine is undefined if
src is not a
The engine goes to
`Error state when either reading from
or writing to
dst raises an unexpected exception.
For every file descriptor event, the state is advanced from
`Working n to
TODO: This class cannot yet cope with Win32 named pipes.
close_src: Whether to close
srcwhen the engine stops (default:
close_dst: Whether to close
dstwhen the engine stops (default: