C++ (Qt) connect(clientSocket,SIGNAL(readyRead()),this, SLOT(socketReadClient()));
/* * New client connection */void SenseSystem::TechServer::newclient(){ // If server started qDebug() << QString::fromUtf8("New connection!!!"); QTcpSocket *socket = tcpServer->nextPendingConnection(); qintptr IDSocket = socket->socketDescriptor(); QThread *thread = new QThread(this); Client *client = new Client(socket); socket->moveToThread(thread); client->moveToThread(thread);