- Timestamp:
- May 17, 2022, 1:46:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9716 r9717 147 147 } 148 148 149 BNC_CORE->slotMessage(msg.toLatin1(), true);149 emit(newMessage(msg.toLatin1(), true)); 150 150 151 151 if (_sslIgnoreErrors) { 152 _outSocket->ignoreSslErrors(); 152 if (_outSocket) { 153 _outSocket->ignoreSslErrors(); 154 } 153 155 } else { 154 156 deleteSafely(); … … 200 202 void bncUploadCaster::open() { 201 203 const int timeOut = 5000; // 5 seconds 204 bncSslConfig sslConfig; 202 205 QByteArray msg; 203 bncSslConfig sslConfig; 206 204 207 205 208 if (_mountpoint.isEmpty()) { … … 230 233 231 234 _outSocket = new QSslSocket(); 235 232 236 _outSocket->setSslConfiguration(sslConfig); 233 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));234 237 _outSocket->setProxy(QNetworkProxy::NoProxy); 235 238 … … 293 296 } 294 297 298 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 299 295 300 if (_ntripVersion == "1") { 296 301 msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1() … … 340 345 _outSocket = 0; 341 346 return false; 347 } else { 348 emit(newMessage("Broadcaster: SSL handshake completed for " + _mountpoint.toLatin1(), true)); 342 349 } 343 350 } else {
Note:
See TracChangeset
for help on using the changeset viewer.