74 Info(
"Closing connection to "+
URL()+
".");
79 if (ec && ec!=ba::error::basic_errors::bad_descriptor)
82 msg <<
"Cancel async requests on " <<
URL() <<
": " << ec.message() <<
" (" << ec <<
")";
92 msg <<
"Closing " <<
URL() <<
": " << ec.message() <<
" (" << ec <<
")";
96 Info(
"Closed connection to "+
URL()+
" succesfully.");
109 ofstream fout1(
"transmitted.txt", ios::app);
110 ofstream fout2(
"received.txt", ios::app);
111 ofstream fout3(
"send.txt", ios::app);
112 fout1 <<
Time() <<
": ---" << endl;
113 fout2 <<
Time() <<
": ---" << endl;
114 fout3 <<
Time() <<
": ---" << endl;
boost::asio::deadline_timer fOutTimeout
Adds some functionality to boost::posix_time::ptime for our needs.
bool IsConnecting() const
int Error(const std::string &str)
ConnectionStatus_t fConnectionStatus
void HandleReconnectTimeout(const boost::system::error_code &error)
int Info(const std::string &str)
boost::asio::deadline_timer fInTimeout
boost::asio::deadline_timer fConnectTimeout