Boost logo

Boost Users :

Subject: [Boost-users] boost::asio::error::eof
From: Lloyd (lloyd_at_[hidden])
Date: 2010-07-10 07:42:19


I am asynchromously reading from a file. At the file read handler there is an error checking like this-

  //do something

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?

Thanks a lot,

Scanned and protected by Email scanner

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at