Hey everyone,
Using the fortune server and client as a base, my program sends and receives strings fine. However, when i start sending multiple strings, very fast, they come out combined.
For example: Sending a string of "12345", loop this 100x without any delay, sometimes what comes out on the other end is 123451234512345. Sometimes..
Here's what i used for the client side:
clientSocket->write("12345");
clientSocket->flush();
Meanwhile on the server, using the readyRead() slot:
QString testString=fromClient->readAll();
qDebug()<<"Received:"<<testString<<"\nLength:"<<te stString.length();
Note:
If i connect to myself: 127.0.0.1, no errors.
If i set a high delay (100ms+), no errors.
My program requires me to send as much/fast data as possible, so 100+ ms delays isn't an option.
Is creating a buffer and figuring out how to point and where to read my only option at this point?
Bookmarks