Boost Users :
Subject: Re: [Boost-users] [ASIO] directory monitor ASIO extension
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2014-08-05 16:43:36
2014-08-05 21:42 GMT+02:00 Boris SchÃ¤ling <boris_at_[hidden]>:
> On Tue, 05 Aug 2014 21:05:30 +0200, Szymon Gatner <szymon.gatner_at_[hidden]>
> [...]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
>> 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!
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net