88 if (bytes_received==0 || error)
92 if (error && error!=ba::error::basic_errors::not_connected)
95 str <<
"Reading from " <<
URL() <<
": " << error.message() <<
" (" << error <<
")";
98 PostClose(error!=ba::error::basic_errors::operation_aborted);
104 if (bytes_received==2)
110 fMsg() <<
"Received b=" << bytes_received <<
": " << (int)
fReadBuffer[0] <<
" " << (
int)txt[0] << " '" << txt << "' " << " " << error.
message() << " (" << error << ")" << endl;
134 Info(
"Requested time received: "+txt);
138 Out() <<
"Received b=" << bytes_received <<
": " << (int)
fReadBuffer[0] <<
" " << (
int)txt[0] << " '" << txt << "' " << " " << error.
message() << " (" << error << ")" << endl;
void AsyncWait(boost::asio::deadline_timer &timer, int millisec, void(Connection::*handler)(const boost::system::error_code &))
boost::asio::deadline_timer fInTimeout
void PostClose(bool restart=true)
int Error(const std::string &str)
void AsyncRead(const boost::asio::mutable_buffers_1 buffers, int type=0)
virtual void HandleReadTimeout(const boost::system::error_code &)
int Info(const std::string &str)