Results 1 to 3 of 3

Thread: Wait in thread till QTcp socket have some thing to read

  1. #1
    Join Date
    Sep 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question Wait in thread till QTcp socket have some thing to read

    I have QTcpSocket in a thread and i a have to make thread wait till socket has something to read. any Qt class or something available for this purpose.
    please help.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Wait in thread till QTcp socket have some thing to read

    Please read doc.qt.nokia.com

  3. #3
    Join Date
    Sep 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Wait in thread till QTcp socket have some thing to read

    I found the answer its
    QTcpSocket::waitForReadyRead();

Similar Threads

  1. Replies: 3
    Last Post: 19th January 2010, 21:26
  2. Replies: 8
    Last Post: 27th October 2009, 10:07
  3. thread with socket?
    By triperzonak in forum Qt Programming
    Replies: 6
    Last Post: 25th September 2008, 17:21
  4. Socket on a Thread
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2008, 16:56
  5. socket read/write bytes
    By nowire75 in forum Newbie
    Replies: 3
    Last Post: 5th July 2007, 00:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.