Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTcpSocket reads its own data
Forum Updated to NodeBB v4.3 + New Features

QTcpSocket reads its own data

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 896 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    seanr8
    wrote on 18 Apr 2013, 04:06 last edited by
    #1

    I have a client and a server. This server will write something, the client will read all from the socket but get nothing. Then, the server will read and will get back the data that it put in. This is after they have been verified connected and I have done QTcpSocket::flush().
    I don't understand why this happens, even when I can verify using a single step debugger that the go in the correct order.

    Any ideas?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on 18 Apr 2013, 04:23 last edited by
      #2

      Hi!
      Can you show some code?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        seanr8
        wrote on 18 Apr 2013, 04:42 last edited by
        #3

        I would, but I've already changed it. Now it just doesn't do as much as it did. I'd show the code if I still had it. Thanks anyway.

        1 Reply Last reply
        0

        2/3

        18 Apr 2013, 04:23

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved