Okay here is some Code:
void CHttpThread::run()
{
socket.setSocketDescriptor( m_socketDescriptor );
socket.waitForReadyRead( 3000 );
socket.close();
connect( &socket, SIGNAL( disconnected() ), this, SLOT( quit() ) );
connect( &socket, SIGNAL(readyRead()), this, SLOT(readClient()) );
exec();
}
void CHttpThread::run()
{
QTcpSocket socket;
socket.setSocketDescriptor( m_socketDescriptor );
socket.waitForReadyRead( 3000 );
socket.close();
connect( &socket, SIGNAL( disconnected() ), this, SLOT( quit() ) );
connect( &socket, SIGNAL(readyRead()), this, SLOT(readClient()) );
exec();
}
To copy to clipboard, switch view to plain text mode
Hope you could help me!
Bookmarks