Results 1 to 4 of 4

Thread: Blocking QTcpSocket for read/write operations

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Location
    Romania, Iasi
    Posts
    18
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Blocking QTcpSocket for read/write operations

    Quote Originally Posted by squidge View Post
    Maybe you have a problem with your event loop? Post a compilable example and maybe we can help.
    Thanks squidge, as per your suggestions I did some more digs and found the problem related to the event loop. This solved the problem.

  2. #2
    Join Date
    Jun 2020
    Posts
    9
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Blocking QTcpSocket for read/write operations

    Please tell me how you solved the problem of starting the event processing cycle (in fact, QCoreApplication::exec()) in Java GUI-app. I have an unsuccessful attempt to start a simple asynchronous socket client - it just does not work in JavaFX. I am trying to make a synchronous client with blocking sockets, but they also require signals and slots and therefore an event loop.

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2010, 05:15
  2. QTcpSocket Write & \0 \x00
    By NewGuy5800 in forum Newbie
    Replies: 1
    Last Post: 25th April 2010, 10:23
  3. read and write on qtcpsocket
    By dognzhe in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2009, 09:42
  4. Non-blocking stream read
    By akiross in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2009, 11:07
  5. QTcpSocket waiting for write to be read
    By spraff in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2008, 19: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
  •  
Qt is a trademark of The Qt Company.