Changeset 9727 in ntrip


Ignore:
Timestamp:
May 20, 2022, 11:13:45 AM (3 months ago)
Author:
stuerze
Message:

minor changes to test ssl

Location:
trunk/BNC/src/upload
Files:
2 edited

Legend:

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

    r9726 r9727  
    123123 ////////////////////////////////////////////////////////////////////////////
    124124void bncUploadCaster::slotSslErrors(QList<QSslError> errors) {
     125  emit(newMessage("slotSslErrors", true));
    125126  QString msg = "SSL Error: ";
    126127  if (_outSocket) {
     
    232233  _outSocket->setSslConfiguration(sslConfig);
    233234  _outSocket->setProxy(QNetworkProxy::NoProxy);
     235  connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    234236  connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    235237
     
    360362
    361363
    362 
    363 
    364 
    365 
    366 
     364void bncUploadCaster::slotSslSocketConnectionClosed() {
     365  emit(newMessage("slotSslSocketConnectionClosed", true));
     366  delete _outSocket;
     367  _outSocket = 0;
     368  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     369}
     370
     371
     372
     373
  • trunk/BNC/src/upload/bncuploadcaster.h

    r9726 r9727  
    3737  void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
    3838  void slotSslErrors(QList<QSslError>);
     39  void slotSslSocketConnectionClosed();
    3940
    4041 private:
Note: See TracChangeset for help on using the changeset viewer.