classGeneric output engine for writing to a file descriptor:
(Unix.file_descr -> 'a) -> Unix.file_descr -> float -> Unixqueue.event_system ->
let e = new output_engine f fd tmo- Waits until the file descriptor becomes writable, and calls then
let x = f fdto write to the descriptor. The result
xis the result of the engine.
If the file descriptor does not become writable within
the resulting engine transitions to
Use this class to construct engines writing via
comparable I/O functions:
let write_engine fd s tmo esys = new output_engine (fun fd -> Unix.single_write fd s 0 (String.length s) ) fd tmo esys
This engine returns the number of written bytes.
Uq_io.output_e for a more generic way of writing with