[SOLVED] QTcpSocket writes data and canReadLine() returns false
I'm experimenting with QTcpSocket and I have seen that when I write data in one client with the form:
@socketClient1->write("Line of text");@
and then, in other client socket I try to do:
it returns flase. It does it despite I can read the text with socket->readAll();.
try socketClient1->write("Line of text\n");
"Line of text" is not a line it's missing "\n" to be considered a line
Thanks for the response!
I imagine that but I preferred to confirm it by someone how knows more, hehehe!
Use the sources francescmm :)
There's also an example in QIODevice::canReadLine documentation