Changeset 8917 in ntrip


Ignore:
Timestamp:
Apr 14, 2020, 8:43:50 AM (5 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r8916 r8917  
    7171  if (port != 0) {
    7272    _server = new QTcpServer;
    73     if ( !_server->listen(QHostAddress::LocalHost, port) ) {
    74       emit newMessage("bncCaster: Cannot listen on sync port", true);
     73    if ( !_server->listen(QHostAddress::Any, port) ) {
     74      QString message = "bncCaster: Cannot listen on sync port" + _server->errorString();
     75      emit newMessage(message.toLatin1(), true);
    7576    }
    7677    connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
     
    8687    _uServer = new QTcpServer;
    8788    if ( !_uServer->listen(QHostAddress::Any, uPort) ) {
    88       emit newMessage("bncCaster: Cannot listen on usync port", true);
     89      QString message = "bncCaster: Cannot listen on usync port" + _server->errorString();
     90      emit newMessage(message.toLatin1(), true);
    8991    }
    9092    connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection()));
Note: See TracChangeset for help on using the changeset viewer.