Changeset 8921 in ntrip
- Timestamp:
- Apr 14, 2020, 9:33:27 PM (5 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r8920 r8921 71 71 if (port != 0) { 72 72 _server = new QTcpServer; 73 _server->setProxy(QNetworkProxy::NoProxy); 73 74 if ( !_server->listen(QHostAddress::Any, port) ) { 74 75 QString message = "bncCaster: Cannot listen on sync port " 75 + QByteArray::number(port) 76 + " (Error Code: " + QByteArray::number(_server->serverError()) + ")";76 + QByteArray::number(port) + ": " 77 + _server->errorString(); 77 78 emit newMessage(message.toLatin1(), true); 78 79 } … … 88 89 if (uPort != 0) { 89 90 _uServer = new QTcpServer; 91 _uServer->setProxy(QNetworkProxy::NoProxy); 90 92 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 91 93 QString message = "bncCaster: Cannot listen on usync port " 92 + QByteArray::number(uPort) 93 + " (Error Code: " + QByteArray::number(_uServer->serverError()) + ")";94 + QByteArray::number(uPort) + ": " 95 + _uServer->errorString(); 94 96 emit newMessage(message.toLatin1(), true); 95 97 } … … 116 118 if (!_miscMount.isEmpty() && _miscPort != 0) { 117 119 _miscServer = new QTcpServer; 120 _miscServer->setProxy(QNetworkProxy::NoProxy); 118 121 if ( !_miscServer->listen(QHostAddress::Any, _miscPort) ) { 119 122 QString message = "bncCaster: Cannot listen on miscellaneous output port " 120 + QByteArray::number(_miscPort) 121 + " (Error Code: " + QByteArray::number(_miscServer->serverError()) + ")";123 + QByteArray::number(_miscPort) + ": " 124 + _miscServer->errorString(); 122 125 emit newMessage(message.toLatin1(), true); 123 126 } -
trunk/BNC/src/bnccaster.h
r8880 r8921 30 30 #include <QTcpServer> 31 31 #include <QTcpSocket> 32 #include <QNetworkProxy> 32 33 33 34 #include "satObs.h" -
trunk/BNC/src/bnccore.cpp
r8920 r8921 519 519 delete _serverEph; 520 520 _serverEph = new QTcpServer; 521 _serverEph->setProxy(QNetworkProxy::NoProxy); 521 522 if ( !_serverEph->listen(QHostAddress::Any, _portEph) ) { 522 523 QString message = "t_bncCore: Cannot listen on ephemeris port " 523 + QByteArray::number(_portEph) 524 + " (Error Code: " + _serverEph->serverError() + ")";524 + QByteArray::number(_portEph) + ": " 525 + _serverEph->errorString(); 525 526 slotMessage(message.toLatin1(), true); 526 527 } … … 538 539 delete _serverCorr; 539 540 _serverCorr = new QTcpServer; 541 _serverCorr->setProxy(QNetworkProxy::NoProxy); 540 542 if ( !_serverCorr->listen(QHostAddress::Any, _portCorr) ) { 541 543 QString message = "t_bncCore: Cannot listen on correction port " 542 + QByteArray::number(_portCorr) 543 + " (Error Code: " + _serverCorr->serverError() + ")";544 + QByteArray::number(_portCorr) + ": " 545 + _serverCorr->errorString(); 544 546 slotMessage(message.toLatin1(), true); 545 547 } -
trunk/BNC/src/bncgetthread.cpp
r8920 r8921 151 151 if (nmeaPort != 0) { 152 152 _nmeaServer = new QTcpServer; 153 _nmeaServer->setProxy(QNetworkProxy::NoProxy); 153 154 if (!_nmeaServer->listen(QHostAddress::Any, nmeaPort)) { 154 155 QString message = "bncCaster: Cannot listen on port " 155 + QByteArray::number(nmeaPort) 156 + " (Error Code: " + QByteArray::number(_nmeaServer->serverError()) + ")";156 + QByteArray::number(nmeaPort) + ": " 157 + _nmeaServer->errorString(); 157 158 emit newMessage(message.toLatin1(), true); 158 159 } else {
Note:
See TracChangeset
for help on using the changeset viewer.