|
Boost Users : |
Subject: Re: [Boost-users] using system:error_code
From: Lloyd (lloyd_at_[hidden])
Date: 2010-07-06 10:03:26
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.
Thanks a lot,
Lloyd
----- Original Message -----
From: "Eric MALENFANT" <Eric.Malenfant_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Monday, July 05, 2010 8:11 PM
Subject: Re: [Boost-users] using system:error_code
> De : boost-users-bounces_at_[hidden] [mailto:boost-users-
>>
>> How can I interpret and use the error_code in my application?
>>
>
> Chris Kohlhoff wrote a series of blog posts on the topic:
> http://blog.think-async.com/2010/04/system-error-support-in-c0x-part-1.html
>
>> if(error.value()==2) //Not readable
>> {
>> }
>>
>> if(error.value()==END_OF_FILE) //More readable { }
>>
>> So how can I get the respective "enum" associated with the error
>>
>
> Look at boost::system::errc in boost/system/error_code.hpp
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
______________________________________
Scanned and protected by Email scanner
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