c++ - Integrate boost::asio into file descriptor based eventloops (select/poll) -


if want integrate stuff boost::asio eventloop based on file descriptors (select/poll), how can achieve it? other libraries asynchronous functions offer hand out file descriptor becomes readable there work done, can integrate select/poll of eventloop , let call processing callback of library (like single shot event processing).

a great example asynchronous name resolver in thread pool, discussed in this question.

several of objects in boost asio library expose native_handle scenarios this.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -