Changeset 1228 in ntrip
- Timestamp:
- Nov 22, 2008, 3:35:35 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r1218 r1228 572 572 delete _server; 573 573 _server = new QTcpServer; 574 _server->listen(QHostAddress::Any, _port); 574 if ( !_server->listen(QHostAddress::Any, _port) ) { 575 slotMessage("bncApp: cannot listen on ephemeris port"); 576 } 575 577 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); 576 578 delete _sockets; … … 586 588 delete _serverCorr; 587 589 _serverCorr = new QTcpServer; 588 _serverCorr->listen(QHostAddress::Any, _portCorr); 590 if ( !_serverCorr->listen(QHostAddress::Any, _portCorr) ) { 591 slotMessage("bncApp: cannot listen on correction port"); 592 } 589 593 connect(_serverCorr, SIGNAL(newConnection()), this, SLOT(slotNewConnectionCorr())); 590 594 delete _socketsCorr; -
trunk/BNC/bnccaster.cpp
r1225 r1228 54 54 QSettings settings; 55 55 56 connect(this, SIGNAL(newMessage(QByteArray)), 57 (bncApp*) qApp, SLOT(slotMessage(const QByteArray))); 58 56 59 if ( !outFileName.isEmpty() ) { 57 60 QString lName = outFileName; … … 76 79 if (_port != 0) { 77 80 _server = new QTcpServer; 78 _server->listen(QHostAddress::Any, _port); 81 if ( !_server->listen(QHostAddress::Any, _port) ) { 82 emit newMessage("bncCaster: cannot listen on sync port"); 83 } 79 84 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); 80 85 _sockets = new QList<QTcpSocket*>; … … 88 93 if (uPort != 0) { 89 94 _uServer = new QTcpServer; 90 _uServer->listen(QHostAddress::Any, uPort); 95 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 96 emit newMessage("bncCaster: cannot listen on usync port"); 97 } 91 98 connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection())); 92 99 _uSockets = new QList<QTcpSocket*>; … … 102 109 103 110 _confTimer = 0; 104 105 connect(this, SIGNAL(newMessage(QByteArray)),106 (bncApp*) qApp, SLOT(slotMessage(const QByteArray)));107 111 } 108 112
Note:
See TracChangeset
for help on using the changeset viewer.