|
Boost : |
From: Andreas Pokorny (andreas.pokorny_at_[hidden])
Date: 2007-09-13 06:03:56
Hello,
2007/9/11, Christopher Kohlhoff <chris_at_[hidden]>:
> Asio is not really intended for those use cases as, in general, user
> interface events follow quite a different model to things like files and
> sockets. [...]
Where is that difference?
>From the users point of view it should be quite similar:
from the tutorials:
io_service io;
deadline_timer t(io, boost::posix_time::seconds(5));
t.async_wait(print);
from my phantasy:
joystick joy(io, "stickname");
joy.async_axis( boost::bind(handle_axis, joy, placeholders::error ));
joy.async_button( boost::bind(handle_button, joy,
placeholders::joystick::button_id, placeholders::error ));
...
kind regards
Andreas Pokorny
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk