How to use boost :: asio for abstract file descriptors?
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 to share