void Server::serverThreadStalled( ServerConnection* connection, bool isStalled ) { if( isStalled ) emit stalled(connection); else emit unstalled(connection); }
Server::Server(QObject *parent) : QTcpServer(parent) { connect( this, SIGNAL( stalled() ), parent, SLOT( stalled() ) ); connect( this, SIGNAL( unstalled() ), parent, SLOT( unstalled() ) ); }
void Server::serverThreadStalled( ServerConnection* connection, bool isStalled ) { qDebug() << "Server: a connection stalled"; if( isStalled ) emit stalled(); else emit unstalled(); }