Hello,
Is there any way to integrate Boost.Asio with Qt4 (prefered) or GTK main loop? GTK provides poll(2) like API so technically is should be possible. Qt provides its own networking layer, however I prefer to use existing code written for Boost.Asio. I want to integrate them without using an additional thread.
Is there any reference how to do this for Qt4 (prefered) or GTKmm?
Thanks.
Edit
I want to clearify several things to make the ansver easier. Both Qt and GTKmm provide "select like" functionality:
- http://doc.trolltech.com/4.5/qsocketnotifier.html
- http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__MainLoop.html
So, the question is, how to integrate existing "selectors/pollers" as reactor to
Boost.Asio io_service
. Today, Boost.Asio can use select, kqueue, epoll, /dev/poll and iocp as reactor/proactor service. I want to integrate it to the main-loop of GUI framework.
Any suggestions and solutions (better) are wellcome.