Changeset 9728 in ntrip


Ignore:
Timestamp:
May 20, 2022, 11:59:32 AM (6 weeks ago)
Author:
stuerze
Message:

minor chenges to test ssl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r9727 r9728  
    211211    if (_outSocket->state() == QAbstractSocket::ConnectedState) {
    212212      return;
    213     } else {
    214       emit(newMessage(
    215           "Broadcaster: No connection for " + _mountpoint.toLatin1(), true));
    216     }
    217   }
    218   delete _outSocket;
    219   _outSocket = 0;
     213    }
     214    delete _outSocket;
     215    _outSocket=0;
     216  }
    220217
    221218  double minDt = pow(2.0, _sOpenTrial);
     
    231228
    232229  _outSocket = new QSslSocket();
     230  _outSocket->setProxy(QNetworkProxy::NoProxy);
    233231  _outSocket->setSslConfiguration(sslConfig);
    234   _outSocket->setProxy(QNetworkProxy::NoProxy);
     232 
    235233  connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    236234  connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     
    240238      emit(newMessage("No proxy support in Ntrip Version 1 upload!", true));
    241239      delete _outSocket;
    242       _outSocket = 0;
     240      _outSocket=0;
    243241      return;
    244242    }
     
    265263            "Proxy: Connection broken for " + _mountpoint.toLatin1()
    266264                + ": " + ans.left(ans.length() - 2), true));
    267         delete _outSocket;
    268         _outSocket = 0;
     265        //delete _outSocket;
     266        //_outSocket=0;
    269267        return;
    270268      } else {
     
    281279                  + QString("%1) ").arg(_casterOutPort).toLatin1()
    282280                  + _outSocket->errorString().toLatin1(), true));
    283           delete _outSocket;
    284           _outSocket = 0;
     281          //delete _outSocket;
     282          //_outSocket=0;
    285283          return;
    286284        } else {
     
    314312
    315313  if (ans.indexOf("200") == -1) {
    316     delete _outSocket;
    317     _outSocket = 0;
     314    //delete _outSocket;
     315    //_outSocket=0;
    318316    emit(newMessage(
    319317        "Broadcaster: Connection broken for " + _mountpoint.toLatin1() + ": "
     
    339337              + QString("%1) ").arg(outPort).toLatin1()
    340338              + _outSocket->errorString().toLatin1(), true));
    341       delete _outSocket;
    342       _outSocket = 0;
     339      //delete _outSocket;
     340      //_outSocket=0;
    343341      return false;
    344342    } else {
     
    353351              + QString("%1) ").arg(outPort).toLatin1()
    354352              + _outSocket->errorString().toLatin1(), true));
    355       delete _outSocket;
    356       _outSocket = 0;
     353      //delete _outSocket;
     354      //_outSocket=0;
    357355      return false;
    358356    }
     
    363361
    364362void bncUploadCaster::slotSslSocketConnectionClosed() {
     363  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    365364  emit(newMessage("slotSslSocketConnectionClosed", true));
    366365  delete _outSocket;
    367366  _outSocket = 0;
    368   disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    369 }
    370 
    371 
    372 
    373 
     367}
     368
     369
     370
     371
Note: See TracChangeset for help on using the changeset viewer.