Changeset 255 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Oct 18, 2006, 3:41:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r250 r255 36 36 _mountPoint = mountPoint; 37 37 _staID = mountPoint.path().mid(1).toAscii(); 38 _staID_orig = _staID; 38 39 _format = format; 39 40 _socket = 0; 40 41 _timeOut = 20*1000; // 20 seconds 41 42 _nextSleep = 1; // 1 second 43 44 // Check name conflict 45 // ------------------- 46 QSettings settings; 47 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 48 int num = 0; 49 int ind = 0; 50 while (it.hasNext()) { 51 QStringList hlp = it.next().split(" "); 52 if (hlp.size() <= 1) continue; 53 QUrl url(hlp[0]); 54 if (_mountPoint.path() == url.path()) { 55 ++num; 56 if (_mountPoint.host() == url.host()) { 57 ind = num - 1; 58 } 59 } 60 } 61 if (num > 1) { 62 _staID = _staID.left(_staID.length()-1) + QString("%1").arg(ind).toAscii(); 63 } 42 64 } 43 65 … … 143 165 if (line.indexOf("STR") == 0) { 144 166 QStringList tags = line.split(";"); 145 if (tags.at(1) == _staID ) {167 if (tags.at(1) == _staID_orig) { 146 168 net = tags.at(7); 147 169 break;
Note:
See TracChangeset
for help on using the changeset viewer.