Changeset 8918 in ntrip


Ignore:
Timestamp:
Apr 14, 2020, 9:49:35 AM (4 months ago)
Author:
stuerze
Message:

port error messages extended

Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccaster.cpp

    r8917 r8918  
    7272    _server = new QTcpServer;
    7373    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();
    7577      emit newMessage(message.toLatin1(), true);
    7678    }
     
    8789    _uServer = new QTcpServer;
    8890    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();
    9094      emit newMessage(message.toLatin1(), true);
    9195    }
     
    113117    _miscServer = new QTcpServer;
    114118    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);
    116123    }
    117124    connect(_miscServer, SIGNAL(newConnection()), this, SLOT(slotNewMiscConnection()));
  • trunk/BNC/src/bnccore.cpp

    r8354 r8918  
    520520    _serverEph = new QTcpServer;
    521521    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);
    523526    }
    524527    connect(_serverEph, SIGNAL(newConnection()), this, SLOT(slotNewConnectionEph()));
     
    536539    _serverCorr = new QTcpServer;
    537540    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);
    539545    }
    540546    connect(_serverCorr, SIGNAL(newConnection()), this, SLOT(slotNewConnectionCorr()));
  • trunk/BNC/src/bncgetthread.cpp

    r8781 r8918  
    152152    _nmeaServer = new QTcpServer;
    153153    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);
    155158    } else {
    156159      connect(_nmeaServer, SIGNAL(newConnection()), this,
Note: See TracChangeset for help on using the changeset viewer.