Regarding Boost::asio::io-service

Dear Friends, Please tell what is the purpose of boost::asio::io-service ios .I am New to the boost Libraries and I'm doing one Open Source project in that already used these asio service in a way of passing asio service in object. like "link l(ios, some other arguments) " My big question is at what sart of time this asio::io-service are most useful and required. Best Regards BaBu -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Please tell what is the purpose of boost::asio::io-service ios .I am New to the boost Libraries and I'm doing one Open Source project in that already used these asio service in a way of passing asio service in object. like "link l(ios, some other arguments) "
Inspect the class "link", and you'll see why it needs this io_service. Maybe it passes io_service to constructors of some other asio objects?
My big question is at what sart of time this asio::io-service are most useful and required.
"The io_service class provides the core I/O functionality for users of the asynchronous I/O objects" http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/reference/io_servic...

Baba Prasad
Dear Friends,
Please tell what is the purpose of boost::asio::io-service ios .I am New to the boost Libraries and I'm doing one Open Source project in that already used these asio service in a way of passing asio service in object. like "link l(ios, some other arguments) "
My big question is at what sart of time this asio::io-service are most useful and required.
It's common use is to post operations to be asynchronously completed into what I would describe as an "internal io-service queue." These operations are executed on a seperate thread or group of threads that grab them from the "queue". When an operation completes, it will callback some handler function or method to evaluate the results. The documentation describes the pattern well.
participants (3)
-
Baba Prasad
-
Christopher
-
Igor R