Boost logo

Boost Users :

Subject: [Boost-users] Boost.Asio: "End of file" when receiving data
From: tiredashell (tiredashell_at_[hidden])
Date: 2009-11-10 21:16:18


In addition to the "parameter is incorrect" error which I inquired about
earlier (and remains unsolved), I am getting "End of file" sometimes when I
attempt to receive data such as in the code below. Please offer some
guidance as to its cause, because there is absolutely no documentation on
what either of these errors mean.

char reply[1024];
boost::system::error_code error;
size_t reply_length = s.receive(boost::asio::buffer(reply, 1024), 0, error);
if (error) cout << error.message() << endl;



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