Changeset 9851 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Oct 17, 2022, 10:01:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9850 r9851 266 266 if (ans.indexOf("200") == -1) { 267 267 int l = ans.indexOf("\r\n", 0); 268 emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1() + ": " + ans.left(l), true)); 268 emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1() + "@" + 269 _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + ": " + ans.left(l), true)); 269 270 delete _outSocket; _outSocket = 0; 270 271 return; … … 275 276 _outSocket->startClientEncryption(); 276 277 if (!_outSocket->waitForEncrypted(timeOut)) { 277 emit(newMessage("Proxy/Caster: Encrypt timeout for " + _mountpoint.toLatin1() + " ("278 emit(newMessage("Proxy/Caster: Encrypt timeout for " + _mountpoint.toLatin1() + "@" 278 279 + _casterOutHost.toLatin1() + ":" 279 280 + QString("%1) ").arg(_casterOutPort).toLatin1() … … 282 283 return; 283 284 } else { 284 emit(newMessage("Proxy: SSL handshake completed for " + _mountpoint.toLatin1(), true)); 285 emit(newMessage("Proxy: SSL handshake completed for " + _mountpoint.toLatin1() + "@" + 286 _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1(), true)); 285 287 } 286 288 } … … 308 310 delete _outSocket; _outSocket = 0; 309 311 int l = ans.indexOf("\r\n", 0); 310 emit(newMessage("Broadcaster " + _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + 311 ": Connection broken for " + _mountpoint.toLatin1() + ": " + ans.left(l), true)); 312 } else { 313 emit(newMessage("Broadcaster" + _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + 314 ": Connection opened for " + _mountpoint.toLatin1(), true)); 312 emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1() + "@" + 313 _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + 314 ": " + ans.left(l), true)); 315 } else { 316 emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toLatin1() + "@" + 317 _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() , true)); 315 318 _sOpenTrial = 0; 316 319 } … … 325 328 if (!_outSocket->waitForEncrypted(timeOut)) { 326 329 emit(newMessage( 327 "Broadcaster " + _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + 328 ": Connect timeout for " + _mountpoint.toLatin1() + " (" 330 "Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@" 329 331 + outHost.toLatin1() + ":" 330 332 + QString("%1) ").arg(outPort).toLatin1() … … 333 335 return false; 334 336 } else { 335 emit(newMessage("Broadcaster " + _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()+336 ": SSL handshake completed for " + _mountpoint.toLatin1(), true));337 emit(newMessage("Broadcaster: SSL handshake completed for " + _mountpoint.toLatin1() + "@" + 338 _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1(), true)); 337 339 } 338 340 } else { 339 341 _outSocket->connectToHost(outHost, outPort); 340 342 if (!_outSocket->waitForConnected(timeOut)) { 341 emit(newMessage("Broadcaster " + _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() + 342 ": Connect timeout for " + _mountpoint.toLatin1() + " (" 343 emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@" 343 344 + outHost.toLatin1() + ":" 344 345 + QString("%1) ").arg(outPort).toLatin1()
Note:
See TracChangeset
for help on using the changeset viewer.