I m building an application where server is running as a service in Windows and client is sending some data to the server which will be stored in the database after getting the data. I am using threaded fortune server example as base. But i m confused abt hw to manage client data getting to the server...i mean where to put this thing on server side:
QTcpSocket* s = new QTcpSocket(this);
connect(s, SIGNAL(readyRead()), this, SLOT(readEmpDetails()));

shall i put inside the incommingConnection() or in the constructor of fortuneserver.cpp
I want server to read the client data in QString and then the thread(fortunethread) will parse tat data n accordingly will store in database.