Hi,
I have a network application, with a client-server design.

Server read a text file and send this information to client.

This is a little extract of my code:

Qt code:
Qt Code:
  1. QString xTmpString;
  2. for (int i = 0; i < xDataStringList.size(); i++)
  3. {
  4. xTmpString = xDataStringList.at(i);
  5. pxTransmissionSocket->write(xTmpString.toLatin1());
  6. }
To copy to clipboard, switch view to plain text mode 

This code work correctly but I have a question:

I can see that client receive only one message whit all the text.
Suppose that I have 50 String. I want that QTcpSocket execute 50 write and the client recevice 50 message?
How I can do it?

Can anyone help me?

Bye