Changeset 787 in ntrip for trunk/BNS/bns.cpp
- Timestamp:
- Apr 8, 2008, 2:45:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r786 r787 27 27 this->setTerminationEnabled(true); 28 28 29 // Thread that handles broadcast ephemeris 30 // --------------------------------------- 29 31 _bnseph = new t_bnseph(parent); 30 32 31 33 connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*))); 32 33 34 connect(_bnseph, SIGNAL(newMessage(QByteArray)), 34 35 this, SLOT(slotMessage(const QByteArray))); 35 36 36 connect(_bnseph, SIGNAL(error(QByteArray)), 37 37 this, SLOT(slotError(const QByteArray))); 38 38 39 // S tartlistening for rtnet results40 // --------------------------------- 39 // Server listening for rtnet results 40 // ---------------------------------- 41 41 QSettings settings; 42 42 _clkSocket = 0; 43 43 _clkServer = new QTcpServer; 44 ///// _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt()); 45 _clkServer->listen(QHostAddress::Any, 5555); 44 _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt()); 46 45 connect(_clkServer, SIGNAL(newConnection()),this, SLOT(slotNewConnection())); 47 46 47 // Socket for outputting the results 48 // --------------------------------- 48 49 _outSocket = 0; 49 50 } … … 54 55 deleteBnsEph(); 55 56 delete _clkServer; 57 delete _clkSocket; 56 58 delete _outSocket; 57 59 QMapIterator<QString, t_ephPair*> it(_ephList); … … 92 94 void t_bns::slotNewConnection() { 93 95 slotMessage("t_bns::slotNewConnection"); 96 delete _clkSocket; 94 97 _clkSocket = _clkServer->nextPendingConnection(); 95 98 }
Note:
See TracChangeset
for help on using the changeset viewer.