It depends how you do the reading. The most basic aparatus you have is bytesAvailable().
You don't need QDataStream for that.I'm afraid I have to use QDataStream because I need to transfer complicated data structure (QList) via socket, and for this small app no reason to make my own functions.
Data transfer time over network is directly proportional to the amount of data being transfered. The less data to transfer, the less time it takes.I think the speed issue did not correlate with QDataStream, my be with some settings, memory pre-allocation but not with QDataStream itself.






Reply With Quote
If you want an efficient protocol, it has to depend on what you are currently doing.
Bookmarks