directory monitoring with dynamically added dirs
I'm trying to dynamically add directories from a config file before I enter
my programs main loop using the ASIO dir monitor example. I've not been
able to understand the internals yet. Below is my current iteration of what
I'm trying. I have been able to get the simple examples running just like
in the async.cpp file. But I can't get adding dirs dynamically working and
was hoping someone could offer suggestions.
Any help much appreciated.
void my_file_handler(const boost::system::error_code &ec,
const boost::asio::dir_monitor_event &ev)
{
// event stuff ...
return;
}
boost::asio::dir_monitor *dm;
boost::asio::io_service io_service;
vector
participants (1)
-
Richard Langly