On Sun, 04 Dec 2011 22:52:13 +0200, Jonas Drewsen <jdrew...@nospam.com> wrote:

The same applies here because all it comes down to in the end is the sizes of buffers.

The async ranges simply allows you to fill a specified number buffers in another thread async. Most OSes also have socket buffers that serves the same purpose but async ranges allows you to specify the buffer size without being privileged.

The standard max read buffer size for a tcp connection on the ubuntu I have is set to 112640 which is doubled by the kernel to 225280 bytes. A developer may very well like buffers larger that this without needing to set privileged kernel variables.

I still don't see how this could ever be useful in practice without the ability to poll for whether data is available. Is it possible to write two short programs that use the synchronous and asynchronous APIs in a way that makes a difference?

--
Best regards,
 Vladimir                            mailto:vladi...@thecybershadow.net

Reply via email to