ok. I had this problem that client asks for 9-10 MB's of data per message and it sends around 15 messages. It doesn't process data equally fast as Server writes it. So the memory consumption at the server end was peaking to around 200 MB's per client connection. This was seen as a concern and i was asked to reduce it. Merely on using waitForBytesWritten( -1 ) immediately after QTcpSocket::write(..) the memory consumption reduced to 30-35 MB at peak. This behaviour is however evidently only in Windows 7. In Win XP the peak memory consumption reduced from 200 MB's to 100 MB's so this is still viewed as a concern. Do you think it is necessary to control it further as tester is concerned that such memory usage will restrict the number of clients the server can connect to before running out of memory?
What function exists that can actually tell me that the client has done reading the sent data from it's read buffer? Then i'll wait for this and only when it's over will i process the other bufferred messages to be replied to/sent?
Bookmarks