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:
for (int i = 0; i < xDataStringList.size(); i++)
{
xTmpString = xDataStringList.at(i);
pxTransmissionSocket->write(xTmpString.toLatin1());
}
QString xTmpString;
for (int i = 0; i < xDataStringList.size(); i++)
{
xTmpString = xDataStringList.at(i);
pxTransmissionSocket->write(xTmpString.toLatin1());
}
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
Bookmarks