c***@evidence.eu.com
2011-08-01 05:20:06 UTC
Hi all,
I am looking for a solution to monitor multiple file descriptors in C++
on Linux.
The problem: on Linux I need to monitor multiple files on /dev/,
waiting until one or more of the files become "ready" for input.
On POSIX this problem is performed by select() or poll() on a list of
file descriptors.
Many people told me that the ASIO library may be the solution to this
problem, but the ASIO documentation does not cover these aspects (i.e.,
in general it is concerned with netowrk programming rather than with
files).
Can you please tell me if ASIO can actually be used to monitor multiple
file descriptors lke select() does on POSIX ?
If so, can you please give me a piece of code to understand how to do
that ?
Many thanks,
Claudio
I am looking for a solution to monitor multiple file descriptors in C++
on Linux.
The problem: on Linux I need to monitor multiple files on /dev/,
waiting until one or more of the files become "ready" for input.
On POSIX this problem is performed by select() or poll() on a list of
file descriptors.
Many people told me that the ASIO library may be the solution to this
problem, but the ASIO documentation does not cover these aspects (i.e.,
in general it is concerned with netowrk programming rather than with
files).
Can you please tell me if ASIO can actually be used to monitor multiple
file descriptors lke select() does on POSIX ?
If so, can you please give me a piece of code to understand how to do
that ?
Many thanks,
Claudio