280 if (bytes_received==0 || err)
282 if (err==ba::error::eof)
283 Warn(
"Connection closed by remote host (GCN).");
287 if (err && err!=ba::error::eof &&
288 err!=ba::error::basic_errors::not_connected &&
289 err!=ba::error::basic_errors::operation_aborted)
292 str <<
"Reading from " << URL() <<
": " << err.message() <<
" (" << err <<
")";
295 PostClose(err!=ba::error::basic_errors::operation_aborted);
305 dummy::error, dummy::bytes_transferred, 1));
311 Out() <<
"------------------------------------------------------\n";
312 Out() <<
fRxData.data() <<
'\n';
313 Out() <<
"------------------------------------------------------" << endl;
317 if (!doc.setContent(QString(
fRxData.data()),
false))
319 Warn(
"Parsing of xml failed [0].");
325 Out() <<
"Parsed:\n-------\n" << doc.toString().toStdString() << endl;
327 const int rc =
ProcessXml(doc.documentElement());
330 Warn(
"Parsing of xml failed [1].");
337 Out() <<
"------------------------------------------------------\n";
338 Out() << doc.toString().toStdString() <<
'\n';
339 Out() <<
"------------------------------------------------------" << endl;
void HandleReceivedData(const bs::error_code &err, size_t bytes_received, int type)
int ProcessXml(const QDomElement &root)