2014-08-05 21:42 GMT+02:00 Boris Schäling
On Tue, 05 Aug 2014 21:05:30 +0200, Szymon Gatner
wrote: [...]Version from 2011 is single class and NOT an ASIO extension - there
is no
deriving from basic_io_object or io_service::service. Hence my question: what is the benefit of deriving from those classes and making your class an ASIO extension vs 2011 version where io_service is just used "externally" for synchronization purposes.
I think the short answer is that you shouldn't derive from basic_io_object or create your own service unless you have to. :) [...] Today if you ever need to wait for events asynchronously, you can reuse windows::object_handle and can ignore the entire framework Boost.Asio set up for I/O objects.
Answer I was looking for, thanks a lot! Regards, Szymon Gatner