QTcpSocket reads its own data
General and Desktop
3
Posts
2
Posters
896
Views
1
Watching
-
wrote on 18 Apr 2013, 04:06 last edited by
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?
-
wrote on 18 Apr 2013, 04:23 last edited by
Hi!
Can you show some code? -
wrote on 18 Apr 2013, 04:42 last edited by
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.
2/3