Every I/O object knows its I/O service and gets access to its I/O service through the I/O service object.īoost.Asio defines boost::asio::io_service, a single class for an I/O service object. An I/O service object is like a registry where I/O services are listed. I/O services are managed by an I/O service object. ![]() These two concepts are required to separate tasks cleanly: I/O services look towards the operating system API, and I/O objects look towards tasks developers need to do.Īs a user of Boost.Asio you normally don’t connect with I/O services directly. ![]() I/O objects initiate asynchronous operations. ![]() I/O services abstract the operating system interfaces that process data asynchronously. Programs that use Boost.Asio for asynchronous data processing are based on I/O services and I/O objects.
0 Comments
Leave a Reply. |