Changeset 8664 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Apr 4, 2019, 1:10:41 PM (5 years ago)
Author:
stuerze
Message:

minor changes reagarding skl filenames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r8661 r8664  
    170170  }
    171171  if (!sklDir.isEmpty() && sklDir != "none") {
    172     QString staID;
     172    QString staID, staIDalternative;
     173    QUrl url;
    173174    int stIdLength = _mountPoint.path().length()-2;
    174     staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
    175     QUrl url(sklDir  + staID);
     175    staID =            _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
     176    staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl";
     177    url = sklDir + "/" + staID;
    176178    if (url.port() == -1) {
    177179      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    190192      QTextStream in(outData);
    191193      irc = _sklHeader.read(&in);
     194    }
     195    else {
     196      url = sklDir + "/" + staIDalternative;
     197      query->waitForRequestResult(url, outData);
     198      if (query->status() == bncNetQuery::finished &&
     199              outData.contains("END OF HEADER")) {
     200            QTextStream in(outData);
     201            irc = _sklHeader.read(&in);
     202          }
    192203    }
    193204
Note: See TracChangeset for help on using the changeset viewer.