205 if (error==ba::error::basic_errors::operation_aborted)
208 if (error && error != ba::error::not_connected)
211 str <<
"Writing to " <<
URL() <<
": " << error.message() <<
" (" << error <<
")";
218 if (error == ba::error::not_connected)
221 msg << n <<
" bytes could not be sent to " <<
URL() <<
" due to missing connection.";
231 msg << n <<
" bytes successfully sent to " <<
URL();
236 ofstream fout(
"transmitted.txt", ios::app);
237 fout <<
Time() <<
": ";
238 for (
unsigned int i=0;
i<fOutQueue.front().size();
i++)
239 fout << hex << setfill(
'0') << setw(2) << (uint32_t)fOutQueue.front()[
i];
boost::asio::deadline_timer fOutTimeout
void CloseImp(int64_t delay=0)
Adds some functionality to boost::posix_time::ptime for our needs.
int Error(const std::string &str)
int Warn(const std::string &str)
int Message(const std::string &str)
virtual void HandleTransmittedData(size_t)