source: ntrip/trunk/BNC/bncapp.cpp@ 1164

Last change on this file since 1164 was 1164, checked in by mervart, 16 years ago

* empty log message *

File size: 19.9 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25/* -------------------------------------------------------------------------
26 * BKG NTRIP Client
27 * -------------------------------------------------------------------------
28 *
29 * Class: bncApp
30 *
31 * Purpose: This class implements the main application
32 *
33 * Author: L. Mervart
34 *
35 * Created: 29-Aug-2006
36 *
37 * Changes:
38 *
39 * -----------------------------------------------------------------------*/
40
41#include <iostream>
42#include <QSettings>
43#include <QMessageBox>
44#include <cmath>
45#include <unistd.h>
46
47#include "bncapp.h"
48#include "bncutils.h"
49#include "bncrinex.h"
50
51using namespace std;
52
53struct converttimeinfo {
54 int second; /* seconds of GPS time [0..59] */
55 int minute; /* minutes of GPS time [0..59] */
56 int hour; /* hour of GPS time [0..24] */
57 int day; /* day of GPS time [1..28..30(31)*/
58 int month; /* month of GPS time [1..12]*/
59 int year; /* year of GPS time [1980..] */
60};
61
62extern "C" {
63 void converttime(struct converttimeinfo *c, int week, int tow);
64 void updatetime(int *week, int *tow, int tk, int fixnumleap);
65}
66
67// Constructor
68////////////////////////////////////////////////////////////////////////////
69bncApp::bncApp(int argc, char* argv[], bool GUIenabled) :
70 QApplication(argc, argv, GUIenabled) {
71
72 _bncVersion = "BNC 1.6";
73
74 _logFileFlag = 0;
75 _logFile = 0;
76 _logStream = 0;
77 _caster = 0;
78
79 // Lists of Ephemeris
80 // ------------------
81 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
82 _gpsEph[ii-PRN_GPS_START] = 0;
83 }
84 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
85 _glonassEph[ii-PRN_GLONASS_START] = 0;
86 }
87
88 // Eph file(s)
89 // -----------
90 _rinexVers = 0;
91 _ephFileGPS = 0;
92 _ephStreamGPS = 0;
93 _ephFileGlonass = 0;
94 _ephStreamGlonass = 0;
95
96 _port = 0;
97 _server = 0;
98 _sockets = 0;
99
100 _portCorr = 0;
101 _serverCorr = 0;
102 _socketsCorr = 0;
103
104 _pgmName = _bncVersion.leftJustified(20, ' ', true);
105#ifdef WIN32
106 _userName = QString("${USERNAME}");
107#else
108 _userName = QString("${USER}");
109#endif
110 expandEnvVar(_userName);
111 _userName = _userName.leftJustified(20, ' ', true);
112
113 QSettings settings;
114 _lastDumpCoSec = 0;
115 _waitCoTime = settings.value("corrTime").toInt();
116 if (_waitCoTime < 1) {
117 _waitCoTime = 1;
118 }
119
120 _corrs = new QMultiMap<long, QString>;
121
122 _currentDateAndTimeGPS = 0;
123}
124
125// Destructor
126////////////////////////////////////////////////////////////////////////////
127bncApp::~bncApp() {
128 delete _logStream;
129 delete _logFile;
130 delete _ephStreamGPS;
131 delete _ephFileGPS;
132 delete _server;
133 delete _sockets;
134 delete _serverCorr;
135 delete _socketsCorr;
136 if (_rinexVers == 2) {
137 delete _ephStreamGlonass;
138 delete _ephFileGlonass;
139 }
140 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
141 delete _gpsEph[ii-PRN_GPS_START];
142 }
143 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
144 delete _glonassEph[ii-PRN_GLONASS_START];
145 }
146
147 delete _corrs;
148
149 delete _currentDateAndTimeGPS;
150}
151
152// Write a Program Message
153////////////////////////////////////////////////////////////////////////////
154void bncApp::slotMessage(const QByteArray msg) {
155
156 QMutexLocker locker(&_mutex);
157
158 messagePrivate(msg);
159}
160
161// Write a Program Message (private, no lock)
162////////////////////////////////////////////////////////////////////////////
163void bncApp::messagePrivate(const QByteArray& msg) {
164
165 // First time resolve the log file name
166 // ------------------------------------
167 if (_logFileFlag == 0) {
168 _logFileFlag = 1;
169 QSettings settings;
170 QString logFileName = settings.value("logFile").toString();
171 if ( !logFileName.isEmpty() ) {
172 expandEnvVar(logFileName);
173 _logFile = new QFile(logFileName);
174 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
175 _logFile->open(QIODevice::WriteOnly | QIODevice::Append);
176 }
177 else {
178 _logFile->open(QIODevice::WriteOnly);
179 }
180 _logStream = new QTextStream();
181 _logStream->setDevice(_logFile);
182 }
183 }
184
185 if (_logStream) {
186 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
187 *_logStream << msg.data() << endl;
188 _logStream->flush();
189 }
190}
191
192// New GPS Ephemeris
193////////////////////////////////////////////////////////////////////////////
194void bncApp::slotNewGPSEph(gpsephemeris* gpseph) {
195
196 QMutexLocker locker(&_mutex);
197
198 gpsephemeris copy_gpseph = *gpseph;
199 emit newEphGPS(copy_gpseph);
200
201 printEphHeader();
202
203 gpsephemeris** ee = &_gpsEph[gpseph->satellite-1];
204 if ( *ee == 0 ||
205 gpseph->GPSweek > (*ee)->GPSweek ||
206 (gpseph->GPSweek == (*ee)->GPSweek && gpseph->TOC > (*ee)->TOC) ) {
207 delete *ee;
208 *ee = gpseph;
209 printGPSEph(gpseph, true);
210 }
211 else {
212 printGPSEph(gpseph, false);
213 delete gpseph;
214 }
215}
216
217// New Glonass Ephemeris
218////////////////////////////////////////////////////////////////////////////
219void bncApp::slotNewGlonassEph(glonassephemeris* glonasseph) {
220
221 QMutexLocker locker(&_mutex);
222
223 glonassephemeris copy_glonasseph = *glonasseph;
224 emit newEphGlonass(copy_glonasseph);
225
226 printEphHeader();
227
228 glonassephemeris** ee = &_glonassEph[glonasseph->almanac_number-1];
229
230 int wwOld, towOld, wwNew, towNew;
231 if (*ee != 0) {
232 wwOld = (*ee)->GPSWeek;
233 towOld = (*ee)->GPSTOW;
234 updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0);
235
236 wwNew = glonasseph->GPSWeek;
237 towNew = glonasseph->GPSTOW;
238 updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0);
239 }
240
241 if ( *ee == 0 ||
242 wwNew > wwOld ||
243 (wwNew == wwOld && towNew > towOld) ) {
244 delete *ee;
245 *ee = glonasseph;
246 printGlonassEph(glonasseph, true);
247 }
248 else {
249 printGlonassEph(glonasseph, false);
250 delete glonasseph;
251 }
252}
253
254// Print Header of the output File(s)
255////////////////////////////////////////////////////////////////////////////
256void bncApp::printEphHeader() {
257
258 QSettings settings;
259
260 // Initialization
261 // --------------
262 if (_rinexVers == 0) {
263
264 if ( Qt::CheckState(settings.value("ephV3").toInt()) == Qt::Checked) {
265 _rinexVers = 3;
266 }
267 else {
268 _rinexVers = 2;
269 }
270
271 _ephPath = settings.value("ephPath").toString();
272
273 if ( !_ephPath.isEmpty() ) {
274 if ( _ephPath[_ephPath.length()-1] != QDir::separator() ) {
275 _ephPath += QDir::separator();
276 }
277 expandEnvVar(_ephPath);
278 }
279 }
280
281 // (Re-)Open output File(s)
282 // ------------------------
283 if (!_ephPath.isEmpty()) {
284
285 QDateTime datTim = currentDateAndTimeGPS();
286
287 QString ephFileNameGPS = _ephPath + "BRDC" +
288 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'));
289
290 QString hlpStr = bncRinex::nextEpochStr(datTim,
291 settings.value("ephIntr").toString());
292
293 if (_rinexVers == 3) {
294 ephFileNameGPS += hlpStr + datTim.toString(".yyP");
295 }
296 else {
297 ephFileNameGPS += hlpStr + datTim.toString(".yyN");
298 }
299
300 if (_ephFileNameGPS == ephFileNameGPS) {
301 return;
302 }
303 else {
304 _ephFileNameGPS = ephFileNameGPS;
305 }
306
307 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
308 delete _gpsEph[ii-PRN_GPS_START];
309 _gpsEph[ii-PRN_GPS_START] = 0;
310 }
311 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
312 delete _glonassEph[ii-PRN_GLONASS_START];
313 _glonassEph[ii-PRN_GLONASS_START] = 0;
314 }
315
316 delete _ephStreamGPS;
317 delete _ephFileGPS;
318
319 QFlags<QIODevice::OpenModeFlag> appendFlagGPS;
320 QFlags<QIODevice::OpenModeFlag> appendFlagGlonass;
321
322 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked &&
323 QFile::exists(ephFileNameGPS) ) {
324 appendFlagGPS = QIODevice::Append;
325 }
326
327 _ephFileGPS = new QFile(ephFileNameGPS);
328 _ephFileGPS->open(QIODevice::WriteOnly | appendFlagGPS);
329 _ephStreamGPS = new QTextStream();
330 _ephStreamGPS->setDevice(_ephFileGPS);
331
332 if (_rinexVers == 3) {
333 _ephFileGlonass = _ephFileGPS;
334 _ephStreamGlonass = _ephStreamGPS;
335 }
336 else if (_rinexVers == 2) {
337 QString ephFileNameGlonass = _ephPath + "BRDC" +
338 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
339 hlpStr + datTim.toString(".yyG");
340
341 delete _ephStreamGlonass;
342 delete _ephFileGlonass;
343
344 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked &&
345 QFile::exists(ephFileNameGlonass) ) {
346 appendFlagGlonass = QIODevice::Append;
347 }
348
349 _ephFileGlonass = new QFile(ephFileNameGlonass);
350 _ephFileGlonass->open(QIODevice::WriteOnly | appendFlagGlonass);
351 _ephStreamGlonass = new QTextStream();
352 _ephStreamGlonass->setDevice(_ephFileGlonass);
353 }
354
355 // Header - RINEX Version 3
356 // ------------------------
357 if (_rinexVers == 3) {
358 if ( ! (appendFlagGPS & QIODevice::Append)) {
359 QString line;
360 line.sprintf(
361 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n",
362 3.0, "", "");
363 *_ephStreamGPS << line;
364
365 QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
366 *_ephStreamGPS << _pgmName.toAscii().data()
367 << _userName.toAscii().data()
368 << hlp.toAscii().data()
369 << "PGM / RUN BY / DATE" << endl;
370
371 line.sprintf("%60sEND OF HEADER\n", "");
372 *_ephStreamGPS << line;
373
374 _ephStreamGPS->flush();
375 }
376 }
377
378 // Headers - RINEX Version 2
379 // -------------------------
380 else if (_rinexVers == 2) {
381 if (! (appendFlagGPS & QIODevice::Append)) {
382 QString line;
383 line.sprintf(
384 "%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 2.11, "", "");
385 *_ephStreamGPS << line;
386
387 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
388 *_ephStreamGPS << _pgmName.toAscii().data()
389 << _userName.toAscii().data()
390 << hlp.toAscii().data()
391 << "PGM / RUN BY / DATE" << endl;
392
393 line.sprintf("%60sEND OF HEADER\n", "");
394 *_ephStreamGPS << line;
395
396 _ephStreamGPS->flush();
397 }
398 if (! (appendFlagGlonass & QIODevice::Append)) {
399 QString line;
400 line.sprintf(
401 "%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n",2.11,"","");
402 *_ephStreamGlonass << line;
403
404 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
405 *_ephStreamGlonass << _pgmName.toAscii().data()
406 << _userName.toAscii().data()
407 << hlp.toAscii().data()
408 << "PGM / RUN BY / DATE" << endl;
409
410 line.sprintf("%60sEND OF HEADER\n", "");
411 *_ephStreamGlonass << line;
412
413 _ephStreamGlonass->flush();
414 }
415 }
416 }
417}
418
419// Print One GPS Ephemeris
420////////////////////////////////////////////////////////////////////////////
421void bncApp::printGPSEph(gpsephemeris* ep, bool printFile) {
422
423 QString lineV2;
424 QString lineV3;
425
426 struct converttimeinfo cti;
427 converttime(&cti, ep->GPSweek, ep->TOC);
428
429 lineV3.sprintf("G%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",
430 ep->satellite, cti.year, cti.month, cti.day, cti.hour,
431 cti.minute, cti.second, ep->clock_bias, ep->clock_drift,
432 ep->clock_driftrate);
433
434 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",
435 ep->satellite, cti.year%100, cti.month, cti.day, cti.hour,
436 cti.minute, (double) cti.second, ep->clock_bias,
437 ep->clock_drift, ep->clock_driftrate);
438
439 QString line;
440 QByteArray allLines;
441
442 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", (double)ep->IODE,
443 ep->Crs, ep->Delta_n, ep->M0);
444 allLines += line;
445
446 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->Cuc,
447 ep->e, ep->Cus, ep->sqrt_A);
448 allLines += line;
449
450 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n",
451 (double) ep->TOE, ep->Cic, ep->OMEGA0, ep->Cis);
452 allLines += line;
453
454 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->i0,
455 ep->Crc, ep->omega, ep->OMEGADOT);
456 allLines += line;
457
458 double dd = 0;
459 unsigned long ii = ep->flags;
460 if(ii & GPSEPHF_L2CACODE)
461 dd += 2.0;
462 if(ii & GPSEPHF_L2PCODE)
463 dd += 1.0;
464 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->IDOT, dd,
465 (double) ep->GPSweek, ii & GPSEPHF_L2PCODEDATA ? 1.0 : 0.0);
466 allLines += line;
467
468 if(ep->URAindex <= 6) /* URA index */
469 dd = ceil(10.0*pow(2.0, 1.0+((double)ep->URAindex)/2.0))/10.0;
470 else
471 dd = ceil(10.0*pow(2.0, ((double)ep->URAindex)/2.0))/10.0;
472 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", dd,
473 ((double) ep->SVhealth), ep->TGD, ((double) ep->IODC));
474 allLines += line;
475
476 line.sprintf(" %18.11e %18.11e\n", ((double)ep->TOW), 0.0);
477 allLines += line;
478
479 printOutput(printFile, _ephStreamGPS, lineV2, lineV3, allLines);
480}
481
482// Print One Glonass Ephemeris
483////////////////////////////////////////////////////////////////////////////
484void bncApp::printGlonassEph(glonassephemeris* ep, bool printFile) {
485
486 int ww = ep->GPSWeek;
487 int tow = ep->GPSTOW;
488 struct converttimeinfo cti;
489
490 updatetime(&ww, &tow, ep->tb*1000, 0);
491 converttime(&cti, ww, tow);
492
493 int tk = ep->tk-3*60*60;
494 if (tk < 0) {
495 tk += 86400;
496 }
497
498 QString lineV2;
499 QString lineV3;
500
501 lineV3.sprintf("R%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",
502 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour,
503 cti.minute, cti.second, -ep->tau, ep->gamma, (double) tk);
504
505 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",
506 ep->almanac_number, cti.year%100, cti.month, cti.day,
507 cti.hour, cti.minute, (double) cti.second, -ep->tau,
508 ep->gamma, (double) tk);
509
510 QString line;
511 QByteArray allLines;
512
513 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->x_pos,
514 ep->x_velocity, ep->x_acceleration,
515 (ep->flags & GLOEPHF_UNHEALTHY) ? 1.0 : 0.0);
516 allLines += line;
517
518 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->y_pos,
519 ep->y_velocity, ep->y_acceleration,
520 (double) ep->frequency_number);
521 allLines += line;
522
523 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->z_pos,
524 ep->z_velocity, ep->z_acceleration, (double) ep->E);
525 allLines += line;
526
527 printOutput(printFile, _ephStreamGlonass, lineV2, lineV3, allLines);
528}
529
530// Output
531////////////////////////////////////////////////////////////////////////////
532void bncApp::printOutput(bool printFile, QTextStream* stream,
533 const QString& lineV2,
534 const QString& lineV3,
535 const QByteArray& allLines) {
536 // Output into file
537 // ----------------
538 if (printFile && stream) {
539 if (_rinexVers == 2) {
540 *stream << lineV2.toAscii();
541 }
542 else {
543 *stream << lineV3.toAscii();
544 }
545 *stream << allLines;
546 stream->flush();
547 }
548
549 // Output into the socket
550 // ----------------------
551 if (_sockets) {
552 QMutableListIterator<QTcpSocket*> is(*_sockets);
553 while (is.hasNext()) {
554 QTcpSocket* sock = is.next();
555 if (sock->state() == QAbstractSocket::ConnectedState) {
556 if (sock->write(lineV3.toAscii()) == -1 ||
557 sock->write(allLines) == -1) {
558 delete sock;
559 is.remove();
560 }
561 }
562 else if (sock->state() != QAbstractSocket::ConnectingState) {
563 delete sock;
564 is.remove();
565 }
566 }
567 }
568}
569
570// Set Port Number
571////////////////////////////////////////////////////////////////////////////
572void bncApp::setPort(int port) {
573 _port = port;
574 if (_port != 0) {
575 delete _server;
576 _server = new QTcpServer;
577 _server->listen(QHostAddress::Any, _port);
578 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
579 delete _sockets;
580 _sockets = new QList<QTcpSocket*>;
581 }
582}
583
584// Set Port Number
585////////////////////////////////////////////////////////////////////////////
586void bncApp::setPortCorr(int port) {
587 _portCorr = port;
588 if (_portCorr != 0) {
589 delete _serverCorr;
590 _serverCorr = new QTcpServer;
591 _serverCorr->listen(QHostAddress::Any, _portCorr);
592 connect(_serverCorr, SIGNAL(newConnection()), this, SLOT(slotNewConnectionCorr()));
593 delete _socketsCorr;
594 _socketsCorr = new QList<QTcpSocket*>;
595 }
596}
597
598// New Connection
599////////////////////////////////////////////////////////////////////////////
600void bncApp::slotNewConnection() {
601 _sockets->push_back( _server->nextPendingConnection() );
602}
603
604// New Connection
605////////////////////////////////////////////////////////////////////////////
606void bncApp::slotNewConnectionCorr() {
607 _socketsCorr->push_back( _serverCorr->nextPendingConnection() );
608}
609
610//
611////////////////////////////////////////////////////////////////////////////
612void bncApp::slotQuit() {
613 cout << "bncApp::slotQuit" << endl;
614 delete _caster;
615 quit();
616}
617
618//
619////////////////////////////////////////////////////////////////////////////
620void bncApp::slotNewCorrLine(QString line, QString staID, long coTime) {
621
622 QMutexLocker locker(&_mutex);
623
624 if (!_socketsCorr) {
625 return;
626 }
627
628 QSettings settings;
629 _waitCoTime = settings.value("corrTime").toInt();
630 if (_waitCoTime < 1) {
631 _waitCoTime = 1;
632 }
633
634 // First time, set the _lastDumpSec immediately
635 // --------------------------------------------
636 if (_lastDumpCoSec == 0) {
637 _lastDumpCoSec = coTime - 1;
638 }
639
640 // An old correction - throw it away
641 // ---------------------------------
642 if (coTime <= _lastDumpCoSec) {
643 QString line = staID + ": Correction overaged by " +
644 QString().sprintf(" %ld sec",
645 _lastDumpCoSec - coTime + _waitCoTime);
646 messagePrivate(line.toAscii());
647 emit( newMessage(line.toAscii()) );
648 return;
649 }
650
651 _corrs->insert(coTime, QString(line + " " + staID));
652
653 // Dump Corrections
654 // ----------------
655 if (coTime - _waitCoTime > _lastDumpCoSec) {
656 dumpCorrs(_lastDumpCoSec + 1, coTime - _waitCoTime);
657 _lastDumpCoSec = coTime - _waitCoTime;
658 }
659}
660
661// Dump Complete Correction Epochs
662////////////////////////////////////////////////////////////////////////////
663void bncApp::dumpCorrs(long minTime, long maxTime) {
664
665 for (long sec = minTime; sec <= maxTime; sec++) {
666 QList<QString> allCorrs = _corrs->values(sec);
667 QListIterator<QString> it(allCorrs);
668 while (it.hasNext()) {
669 QString corrLine = it.next() + "\n";
670
671 QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
672 while (is.hasNext()) {
673 QTcpSocket* sock = is.next();
674 if (sock->state() == QAbstractSocket::ConnectedState) {
675 if (sock->write(corrLine.toAscii()) == -1) {
676 delete sock;
677 is.remove();
678 }
679 }
680 else if (sock->state() != QAbstractSocket::ConnectingState) {
681 delete sock;
682 is.remove();
683 }
684 }
685 }
686 _corrs->remove(sec);
687 }
688}
Note: See TracBrowser for help on using the repository browser.