6 Jul
2010
6 Jul
'10
3:20 p.m.
De: Lloyd
Thanks for this useful link. I have checked boost::system::error, boost::asio::error, but could not find a solution to my problem.
I am writing to a file using async_write_some(). If an error occurs, how can check whether the disk is full or not? A one or two line code will be very useful.
Something like (warning, untested): void write_handler(const boost::system::error_code& ec, std::size_t bytes_transferred) { if (ec == boost::system::errc::no_space_on_device){ // ...