
On Tue, 08 Apr 2008 08:43:52 +0200, Kowalke Oliver (QD IT PA AS) <Oliver.Kowalke@qimonda.com> wrote:
[...]Two ways:
1.) use asynchronous I/O with aio-system calls (UNIX: aio_read/aio_write, ... whith aiocb struct; AFAIK not supported by boost::asio) Note: AIO is not supported on all systems (for instance on LINUX aio doesn't realy support sockets) and other I/O techniques maybe faster and more efficient.
2.) use synchronous I/O with non-blocking descriptors, demultiplexing techniques (select, epoll, kqueue,...) and threads (==the way boost::asio works).
Well, this wouldn't be a C++ library then to make C++ standard streams support asynchronous I/O. It would rather be a system-specific library where C++ developers would have to find out themselves if their streams are represented by something platform-specific like file descriptors. Boris