How to read and write line by line?
Hi!
How I can read and write information to/from socket line by line?
Now I'm doing this:
Code:
tcpSocket.waitForReadyRead();
But this is incorrect, because program don't wait two "\r\n" and after first write goes next.
PS I'm writing a small HTTP server.
And also one question: how I can get speed of file downloading? And how I can set it? Or how I can abor connection from UI?
Re: How to read and write line by line?
Re: How to read and write line by line?
Re: How to read and write line by line?
This example does not work since Qt 4.2: http://www.qtcentre.org/threads/1020...314#post167314
Have You tried it at least once? Does it work for You???