Changeset 9717 in ntrip


Ignore:
Timestamp:
May 17, 2022, 1:46:35 PM (6 weeks ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

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

    r9716 r9717  
    147147  }
    148148
    149   BNC_CORE->slotMessage(msg.toLatin1(), true);
     149  emit(newMessage(msg.toLatin1(), true));
    150150
    151151  if (_sslIgnoreErrors) {
    152     _outSocket->ignoreSslErrors();
     152    if (_outSocket) {
     153      _outSocket->ignoreSslErrors();
     154    }
    153155  } else {
    154156    deleteSafely();
     
    200202void bncUploadCaster::open() {
    201203  const int timeOut = 5000;  // 5 seconds
     204  bncSslConfig sslConfig;
    202205  QByteArray msg;
    203   bncSslConfig sslConfig;
     206
    204207
    205208  if (_mountpoint.isEmpty()) {
     
    230233
    231234  _outSocket = new QSslSocket();
     235
    232236  _outSocket->setSslConfiguration(sslConfig);
    233   connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    234237  _outSocket->setProxy(QNetworkProxy::NoProxy);
    235238
     
    293296  }
    294297
     298  connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     299
    295300  if (_ntripVersion == "1") {
    296301    msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1()
     
    340345      _outSocket = 0;
    341346      return false;
     347    } else {
     348      emit(newMessage("Broadcaster: SSL handshake completed for " + _mountpoint.toLatin1(), true));
    342349    }
    343350  } else {
Note: See TracChangeset for help on using the changeset viewer.