Boost Users :
Subject: Re: [Boost-users] boost::asio::error::eof
From: Igor R (boost.lists_at_[hidden])
Date: 2010-07-10 16:53:54
> I am asynchromously reading from a file. At the file read handler there is
> an error checking like this-
> Â //do something
> Â cout<<error.messge()<<endl;
> When the end of file reaches, the control does not enter into the "if
> portion", instead it enters the else condition and prints the message
> "Reached the end of the file". Am I comparing error wrongly? or else where
> could be the problem? How can I know that the end of file has reached?
So you get some other error, not asio::error::eof. Use the debugger
and check what error code you actually get.
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