PDA

View Full Version : QT and WSAAsyncSelect



QPlace
5th December 2008, 15:05
I am porting Win32 C++ application to use QT framework. Amongst other things I have a client socket that is returned from the call to 3-rd party library. Then I am getting data from the connection using WSAAsyncSelect, where the first parameter is the socket handle.

My question: Is there any way to use TCP classes provided by QT to read data from the established connection where I know the client socket handle? I want to get rid of WSAAsyncSelect and use QT cross-platform support.

Any help/comments will be greatly appreciated.

QPlace
7th December 2008, 00:54
It seems that bool QAbstractSocket::setSocketDescriptor is what are you looking for. Check it out and let us all know if it worked.