|Anonymous | Login | Signup for a new account||2014-10-25 21:52 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003075||OCaml||OCaml general||public||2004-08-18 13:33||2004-08-20 16:49|
|Target Version||Fixed in Version|
|Summary||0003075: Feature request: "select" on channels|
I'd like to know whether there are plans to add "select" for I/O-channels
to the standard library.
It should behave as follows for in_channels: if there is data in the
buffer, return. If not, then perform a select with a given timeout on
the underlying descriptor.
For output channels: if the buffer is full, then perform a select with
a given timeout on the underlying descriptor, otherwise return.
There should also be an output function for out_channels that does not
block if data cannot be fully written to the descriptor. It could return
a tuple of the amount of bytes that were actually sent and the amount
of bytes of this data that were actually sent. This way an application
can notice that it should attempt sending further data/requests to a
Btw., it would also be nice if one could specify (and query) the buffer
size for channels at runtime. The hard-coded IO_BUFFER_SIZE of 4096
may not be optimal for certain kinds of descriptors, e.g. sockets:
their send- and receive buffers may have other sizes.
Markus Mottl http://www.oefai.at/~markus [^] email@example.com
|Tags||No tags attached.|
|2005-11-18 10:13||administrator||New Issue|
|2009-08-20 14:33||xclerc||Relationship added||has duplicate 0003579|
|Copyright © 2000 - 2011 MantisBT Group|