Results 1 to 2 of 2

Thread: QT and WSAAsyncSelect

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 3 Times in 3 Posts

    Default QT and WSAAsyncSelect

    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.

  2. #2
    Join Date
    Jul 2007
    Posts
    121
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 3 Times in 3 Posts

    Default Re: QT and WSAAsyncSelect

    It seems that bool QAbstractSocket::setSocketDescriptor is what are you looking for. Check it out and let us all know if it worked.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.