Hi,
First, create a QThread derived class "myThreadClass"
When a new incoming connection comes, you can create a "myThreadClass" object and pass the socketDescriptor to it. Finally call "myThreadClass->start()".
There you can create a QTcpSocket with the socketDescriptor and finally call "exec()" to enter into the eventLoop. In "myThreadClass" you will have to do the "work".
Hope it helps,




Reply With Quote
Bookmarks