I have a client in Qt that is continuously writing data using QTcpSocket->write( ) method.
In the other hand, my server uses QTcpSocket->readyRead() signal which is a connected to a slot that uses readAll() method to retrieve the information.
My problem is that sometimes the server is busy doing something else so when readAll is called, it returns a QString cointaining multiple received messages, all concatenated.
Since I can't change the message form (to add an explicit ending character for instance), is there a way to differenciate one message from the other? I've looked the documentation to see if maybe write function is adding an specific character at the end of the stream but couldn't find anything.
PS: I will handle it using the server only for receiving messages and putting them into a queue so there is less chances that it is busy when messages arrive but it is not a perfect solution!