Changeset 9738 in ntrip for trunk/BNC/src/upload
- Timestamp:
- May 31, 2022, 10:54:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/upload/bncuploadcaster.cpp ¶
r9737 r9738 64 64 65 65 _sslIgnoreErrors = (Qt::CheckState(settings.value("sslIgnoreErrors").toInt()) == Qt::Checked); 66 67 qRegisterMetaType<QList<QSslError> >("QList<QSslError>");68 66 69 67 _proxyOutHost = settings.value("proxyHost").toString(); … … 196 194 void bncUploadCaster::open() { 197 195 const int timeOut = 5000; // 5 seconds 198 bncSslConfig sslConfig;199 196 QByteArray msg; 200 197 … … 222 219 223 220 _outSocket = new QSslSocket(); 221 _outSocket->setSslConfiguration(BNC_CORE->sslConfiguration()); 224 222 _outSocket->setProxy(QNetworkProxy::NoProxy); 225 _outSocket->setSslConfiguration(sslConfig); 223 226 224 connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 227 225 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); … … 339 337 340 338 void bncUploadCaster::slotSslSocketConnectionClosed() { 341 disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 342 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 339 // disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 340 // disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 343 341 emit(newMessage("slotSslSocketConnectionClosed", true)); 344 342 if (_outSocket) {
Note:
See TracChangeset
for help on using the changeset viewer.