Changeset 1228 in ntrip for trunk/BNC/bnccaster.cpp


Ignore:
Timestamp:
Nov 22, 2008, 3:35:35 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r1225 r1228  
    5454  QSettings settings;
    5555
     56  connect(this, SIGNAL(newMessage(QByteArray)),
     57          (bncApp*) qApp, SLOT(slotMessage(const QByteArray)));
     58
    5659  if ( !outFileName.isEmpty() ) {
    5760    QString lName = outFileName;
     
    7679  if (_port != 0) {
    7780    _server = new QTcpServer;
    78     _server->listen(QHostAddress::Any, _port);
     81    if ( !_server->listen(QHostAddress::Any, _port) ) {
     82      emit newMessage("bncCaster: cannot listen on sync port");
     83    }
    7984    connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
    8085    _sockets = new QList<QTcpSocket*>;
     
    8893  if (uPort != 0) {
    8994    _uServer = new QTcpServer;
    90     _uServer->listen(QHostAddress::Any, uPort);
     95    if ( !_uServer->listen(QHostAddress::Any, uPort) ) {
     96      emit newMessage("bncCaster: cannot listen on usync port");
     97    }
    9198    connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection()));
    9299    _uSockets = new QList<QTcpSocket*>;
     
    102109
    103110  _confTimer = 0;
    104 
    105   connect(this, SIGNAL(newMessage(QByteArray)),
    106           (bncApp*) qApp, SLOT(slotMessage(const QByteArray)));
    107111}
    108112
Note: See TracChangeset for help on using the changeset viewer.