View Full Version : compressed QTcp Communication

7th September 2012, 14:45
Hi guys,
I want to compress(gzip), uncompress the transmitted data. I work with QTcpSocket, or QSslSocket. Now I want to know, what is the best solution.
I know, that I cannot use the Qt methods qCompress and qUncompress, because they don't support gzip.
Should I use third party libs?

Thank you

7th September 2012, 20:18
The old QtSolutions used to have a QIOCompressor class for doing just this. I see it's no longer in the QtSolutions link displayed on the Qt website but the classes are still available on the FTP site. (ftp://ftp.qt.nokia.com/qt/solutions/lgpl/)

8th September 2012, 05:59
Should I use third party libs?
If qCompress/qUncompress cannot do what you want then you need to use third-party solutions. However first make sure qCompress indeed doesn't support what you want (it uses zlib which was written for gzip).


13th September 2012, 09:15
thank you for your replies! :)