Changeset 8918 in ntrip
- Timestamp:
- Apr 14, 2020, 9:49:35 AM (5 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r8917 r8918 72 72 _server = new QTcpServer; 73 73 if ( !_server->listen(QHostAddress::Any, port) ) { 74 QString message = "bncCaster: Cannot listen on sync port" + _server->errorString(); 74 QString message = "bncCaster: Cannot listen on sync port " 75 + QByteArray::number(port) + ": " 76 + _server->errorString(); 75 77 emit newMessage(message.toLatin1(), true); 76 78 } … … 87 89 _uServer = new QTcpServer; 88 90 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 89 QString message = "bncCaster: Cannot listen on usync port" + _server->errorString(); 91 QString message = "bncCaster: Cannot listen on usync port " 92 + QByteArray::number(uPort) + ": " 93 + _uServer->errorString(); 90 94 emit newMessage(message.toLatin1(), true); 91 95 } … … 113 117 _miscServer = new QTcpServer; 114 118 if ( !_miscServer->listen(QHostAddress::Any, _miscPort) ) { 115 emit newMessage("bncCaster: Cannot listen on Miscellaneous Output Port", true); 119 QString message = "bncCaster: Cannot listen on miscellaneous output port " 120 + QByteArray::number(_miscPort) + ": " 121 + _miscServer->errorString(); 122 emit newMessage(message.toLatin1(), true); 116 123 } 117 124 connect(_miscServer, SIGNAL(newConnection()), this, SLOT(slotNewMiscConnection())); -
trunk/BNC/src/bnccore.cpp
r8354 r8918 520 520 _serverEph = new QTcpServer; 521 521 if ( !_serverEph->listen(QHostAddress::Any, _portEph) ) { 522 slotMessage("t_bncCore: Cannot listen on ephemeris port", true); 522 QString message = "t_bncCore: Cannot listen on ephemeris port " 523 + QByteArray::number(_portEph) + ": " 524 + _serverEph->errorString(); 525 slotMessage(message.toLatin1(), true); 523 526 } 524 527 connect(_serverEph, SIGNAL(newConnection()), this, SLOT(slotNewConnectionEph())); … … 536 539 _serverCorr = new QTcpServer; 537 540 if ( !_serverCorr->listen(QHostAddress::Any, _portCorr) ) { 538 slotMessage("t_bncCore: Cannot listen on correction port", true); 541 QString message = "t_bncCore: Cannot listen on correction port " 542 + QByteArray::number(_portCorr) + ": " 543 + _serverCorr->errorString(); 544 slotMessage(message.toLatin1(), true); 539 545 } 540 546 connect(_serverCorr, SIGNAL(newConnection()), this, SLOT(slotNewConnectionCorr())); -
trunk/BNC/src/bncgetthread.cpp
r8781 r8918 152 152 _nmeaServer = new QTcpServer; 153 153 if (!_nmeaServer->listen(QHostAddress::Any, nmeaPort)) { 154 emit newMessage("bncCaster: Cannot listen on port", true); 154 QString message = "bncCaster: Cannot listen on port " 155 + QByteArray::number(nmeaPort) + ": " 156 + _nmeaServer->errorString(); 157 emit newMessage(message.toLatin1(), true); 155 158 } else { 156 159 connect(_nmeaServer, SIGNAL(newConnection()), this,
Note:
See TracChangeset
for help on using the changeset viewer.