Changeset 828 in ntrip
- Timestamp:
- Apr 15, 2008, 10:10:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r827 r828 28 28 29 29 this->setTerminationEnabled(true); 30 31 _bnseph = 0; 32 _outSocket = 0; 33 _clkSocket = 0; 30 31 // Thread that handles broadcast ephemeris 32 // --------------------------------------- 33 _bnseph = new t_bnseph(parent); 34 35 connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*))); 36 connect(_bnseph, SIGNAL(newMessage(QByteArray)), 37 this, SLOT(slotMessage(const QByteArray))); 38 connect(_bnseph, SIGNAL(error(QByteArray)), 39 this, SLOT(slotError(const QByteArray))); 34 40 35 41 // Server listening for rtnet results 36 42 // ---------------------------------- 37 43 QSettings settings; 44 _clkSocket = 0; 38 45 _clkServer = new QTcpServer; 39 46 _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt()); 40 41 connect(_clkServer, SIGNAL(newConnection()), 42 this, SLOT(slotNewConnection()), Qt::DirectConnection); 47 connect(_clkServer, SIGNAL(newConnection()),this, SLOT(slotNewConnection())); 48 49 // Socket and file for outputting the results 50 // ------------------------------------------- 51 _outSocket = 0; 43 52 44 53 QString outFileName = settings.value("outFile").toString(); … … 158 167 delete _outSocket; 159 168 _outSocket = 0; 160 emit(slotMessage("bns::openCaster socket deleted"));161 }162 else {163 emit(slotMessage("bns::openCaster socket OK"));164 169 } 165 170 } … … 202 207 slotMessage("============ Start BNS ============"); 203 208 204 // Thread that handles broadcast ephemeris 205 // --------------------------------------- 206 _bnseph = new t_bnseph(parent()); 209 // Start Thread that retrieves broadcast Ephemeris 210 // ----------------------------------------------- 207 211 _bnseph->start(); 208 209 connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*)));210 211 connect(_bnseph, SIGNAL(newMessage(QByteArray)),212 this, SLOT(slotMessage(const QByteArray)));213 214 connect(_bnseph, SIGNAL(error(QByteArray)),215 this, SLOT(slotError(const QByteArray)));216 212 217 213 // Endless loop
Note:
See TracChangeset
for help on using the changeset viewer.