c++ - Does BOOST asio supports eventfd? like epoll -
epoll() can poll on lots of fd types such normal fd, sockets, timefd, eventfd, etc...
can boost somehow? saw in io_service supports only:
the io_service class provides core i/o functionality users of asynchronous i/o objects, including:
boost::asio::ip::tcp::socket
boost::asio::ip::tcp::acceptor
boost::asio::ip::udp::socket
deadline_timer.
is there way?
the documentation describes some, not all, of things io_service class can do. note says "including", not "only". also, next sentence in documentation reads:
the io_service class includes facilities intended developers of custom asynchronous services. if reading or writing file descriptor have created directly, can use boost::asio::posix::stream_descriptor. can use serial_port classes. can operate on files. think you'll able map operation; if still have trouble ask more specific question.
Comments
Post a Comment