[asio] Poll without read

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.

Maybe this example from asio helps you further: http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/example/nonblocking... regards Jens Weller -------- Original-Nachricht --------
Datum: Tue, 10 Feb 2009 16:34:53 +0300 Von: Oleg Malashenko
An: boost-users@lists.boost.org Betreff: [Boost-users] [asio] Poll without read
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

Thank you, that helped. I am wondering how I could have missed this example :) Jens Weller wrote:
Maybe this example from asio helps you further: http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/example/nonblocking...
regards
Jens Weller
participants (2)
-
Jens Weller
-
Oleg Malashenko