- Timestamp:
- May 31, 2022, 10:23:38 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9742 r9743 248 248 + "Host: " + _casterOutHost.toLatin1() + "\r\n" 249 249 + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n" 250 + "\r\n"; //cout << msg.toStdString().c_str();250 + "\r\n"; 251 251 _outSocket->write(msg); 252 252 _outSocket->waitForBytesWritten(); 253 253 _outSocket->waitForReadyRead(); 254 254 255 QByteArray ans = _outSocket->readAll(); //cout << ans.toStdString().c_str() << endl;255 QByteArray ans = _outSocket->readAll(); 256 256 if (ans.indexOf("200") == -1) { 257 emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1()258 + ": " + ans.left(ans.length() - 2), true));257 int l = ans.indexOf("\r\n", 0); 258 emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1() + ": " + ans.left(l-1), true)); 259 259 _outSocket->close(); 260 260 return; … … 293 293 _outSocket->waitForReadyRead(); 294 294 295 QByteArray ans = _outSocket->readAll(); //cout << "ans: " << ans.toStdString().c_str() << endl;295 QByteArray ans = _outSocket->readAll(); 296 296 297 297 if (ans.indexOf("200") == -1) { 298 298 _outSocket->close(); 299 emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1() + ": "300 + ans.left(ans.length() - 2), true));299 int l = ans.indexOf("\r\n", 0); 300 emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1() + ": " + ans.left(l-1), true)); 301 301 } else { 302 302 emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toLatin1(), true));
Note:
See TracChangeset
for help on using the changeset viewer.