Changeset 8921 in ntrip


Ignore:
Timestamp:
Apr 14, 2020, 9:33:27 PM (5 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
4 edited

Legend:

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

    r8920 r8921  
    7171  if (port != 0) {
    7272    _server = new QTcpServer;
     73    _server->setProxy(QNetworkProxy::NoProxy);
    7374    if ( !_server->listen(QHostAddress::Any, port) ) {
    7475      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();
    7778      emit newMessage(message.toLatin1(), true);
    7879    }
     
    8889  if (uPort != 0) {
    8990    _uServer = new QTcpServer;
     91    _uServer->setProxy(QNetworkProxy::NoProxy);
    9092    if ( !_uServer->listen(QHostAddress::Any, uPort) ) {
    9193      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();
    9496      emit newMessage(message.toLatin1(), true);
    9597    }
     
    116118  if (!_miscMount.isEmpty() && _miscPort != 0) {
    117119    _miscServer = new QTcpServer;
     120    _miscServer->setProxy(QNetworkProxy::NoProxy);
    118121    if ( !_miscServer->listen(QHostAddress::Any, _miscPort) ) {
    119122      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();
    122125      emit newMessage(message.toLatin1(), true);
    123126    }
  • trunk/BNC/src/bnccaster.h

    r8880 r8921  
    3030#include <QTcpServer>
    3131#include <QTcpSocket>
     32#include <QNetworkProxy>
    3233
    3334#include "satObs.h"
  • trunk/BNC/src/bnccore.cpp

    r8920 r8921  
    519519    delete _serverEph;
    520520    _serverEph = new QTcpServer;
     521    _serverEph->setProxy(QNetworkProxy::NoProxy);
    521522    if ( !_serverEph->listen(QHostAddress::Any, _portEph) ) {
    522523      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();
    525526      slotMessage(message.toLatin1(), true);
    526527    }
     
    538539    delete _serverCorr;
    539540    _serverCorr = new QTcpServer;
     541    _serverCorr->setProxy(QNetworkProxy::NoProxy);
    540542    if ( !_serverCorr->listen(QHostAddress::Any, _portCorr) ) {
    541543      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();
    544546      slotMessage(message.toLatin1(), true);
    545547    }
  • trunk/BNC/src/bncgetthread.cpp

    r8920 r8921  
    151151  if (nmeaPort != 0) {
    152152    _nmeaServer = new QTcpServer;
     153    _nmeaServer->setProxy(QNetworkProxy::NoProxy);
    153154    if (!_nmeaServer->listen(QHostAddress::Any, nmeaPort)) {
    154155      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();
    157158      emit newMessage(message.toLatin1(), true);
    158159    } else {
Note: See TracChangeset for help on using the changeset viewer.