- Timestamp:
- May 23, 2022, 10:11:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9729 r9730 234 234 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 235 235 236 if (_proxy) { 236 if (!_proxy) { 237 if (!connectToHost(_casterOutHost, _casterOutPort, _secure)) { 238 return; 239 } 240 } else { 237 241 if (_ntripVersion == "1") { 238 242 emit(newMessage("No proxy support in Ntrip Version 1 upload!", true)); 239 delete _outSocket; 240 _outSocket=0; 243 _outSocket->close(); 241 244 return; 242 245 } … … 274 277 if (!_outSocket->waitForEncrypted(timeOut)) { 275 278 emit(newMessage( 276 "Proxy : Encrypt timeout for " + _mountpoint.toLatin1() + " ("279 "Proxy/Caster: Encrypt timeout for " + _mountpoint.toLatin1() + " (" 277 280 + _casterOutHost.toLatin1() + ":" 278 281 + QString("%1) ").arg(_casterOutPort).toLatin1() … … 284 287 } 285 288 } 286 } else {287 if (!connectToHost(_casterOutHost, _casterOutPort, _secure)) {288 return;289 }290 289 } 291 290 … … 306 305 _outSocket->waitForReadyRead(); 307 306 308 QByteArray ans = _outSocket->readLine(); cout << "ans: " << ans.toStdString().c_str() << endl; 307 QByteArray ans = ""; 308 if (_outSocket->canReadLine()) { 309 ans = _outSocket->readLine(); cout << "ans: " << ans.toStdString().c_str() << endl; 310 } 309 311 310 312 if (ans.indexOf("200") == -1) { … … 333 335 + QString("%1) ").arg(outPort).toLatin1() 334 336 + _outSocket->errorString().toLatin1(), true)); 335 //delete _outSocket;336 //_outSocket=0;337 337 return false; 338 338 } else { … … 347 347 + QString("%1) ").arg(outPort).toLatin1() 348 348 + _outSocket->errorString().toLatin1(), true)); 349 //delete _outSocket;350 //_outSocket=0;351 349 return false; 352 350 }
Note:
See TracChangeset
for help on using the changeset viewer.