Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Poll without read
From: Jens Weller (JensWeller_at_[hidden])
Date: 2009-02-10 10:18:08


Maybe this example from asio helps you further:
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/example/nonblocking/third_party_lib.cpp

regards

Jens Weller
-------- Original-Nachricht --------
> Datum: Tue, 10 Feb 2009 16:34:53 +0300
> Von: Oleg Malashenko <Oleg.Malashenko_at_[hidden]>
> An: boost-users_at_[hidden]
> 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_at_[hidden]
> 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

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