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
Post a Comment