Boost logo

Boost Users :

Subject: [Boost-users] [asio] Poll without read
From: Oleg Malashenko (Oleg.Malashenko_at_[hidden])
Date: 2009-02-10 08:34:53


Hi everyone,

I am trying to get video stream from Video4Linux2 device (/dev/video*)
and faced with a interesting boost::asio usecase.

V4L2 device implements poll calls, so one can poll() on specific device
file to wait for next portion of data, but read itself is made via ioctl.

I suppose, boost::asio is a natural choice in this situation and I am
wondering
if there is a method to run my callback when "the data is ready to
read", but
without calling read()? (on the same manner as ACE::Reactor does)?

Thank you.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net