How to use boost :: asio for abstract file descriptors?

Is there a tutorial on how to use Boost :: asio abstractions for multiple Linux file descriptors?

Basically I'm looking for better abstractions to select multiple file descriptors on a separate thread with timeouts.

+3


source to share


1 answer


Not a tutorial, but a working example:

http://article.gmane.org/gmane.comp.lib.boost.asio.user/2699 or http://lists.boost.org/Archives/boost/2008/10/143892.php

They mainly use boost :: asio :: posix :: stream_descriptor to use native file descriptors with ASIO.



There is also an example in the accompanying documentation: POSIX-specific chat client demonstrates how to use the posix :: stream_descriptor class to perform console input and output

And maybe you want to use the io_service reactor style .

+6


source







All Articles