[Qt-interest] qthread

Nicola De Filippo nicola at nicoladefilippo.it
Fri Jun 19 23:15:55 CEST 2009


Hi,
i changed the main of localfortuneserver example (add while cicle):

#include <QApplication>
#include <QtCore>

#include <stdlib.h>

#include "server.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    Server server;
    server.start();
    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));

   // ADDED

     while(1)
	{
		qDebug() << "print";
	}
    return app.exec();
}

why now the server don't recevie clienti request?

            N.



More information about the Qt-interest-old mailing list