Results 1 to 4 of 4

Thread: compressed QTcp Communication

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default compressed QTcp Communication

    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

  2. #2
    Join Date
    Jun 2010
    Location
    Pretoria, South Africa
    Posts
    22
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: compressed QTcp Communication

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: compressed QTcp Communication

    Quote Originally Posted by Qiieha View Post
    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).

    http://en.wikipedia.org/wiki/Zlib
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. The following user says thank you to wysota for this useful post:

    Qiieha (13th September 2012)

  5. #4
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: compressed QTcp Communication

    thank you for your replies!

Similar Threads

  1. Wait in thread till QTcp socket have some thing to read
    By hasnain in forum Qt Programming
    Replies: 2
    Last Post: 14th September 2010, 12:46
  2. QtHelp Module - registering compressed help file gives error
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2008, 14:14
  3. Dealing with bzip2 compressed tar files
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2007, 11:56
  4. Check for compressed .qm file?
    By ksierens in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2006, 19:52
  5. Communication Help Pls
    By munna in forum Newbie
    Replies: 1
    Last Post: 25th May 2006, 13:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.