Results 1 to 2 of 2

Thread: Why QSslSocket not support DEFLATE algoritmus ? and other module by qt having zlib..

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Why QSslSocket not support DEFLATE algoritmus ? and other module by qt having zl

    QSslSocket, QTcpSocket, QFile, etc. are QIODevices. They provide low level data input/output, i.e. reading and writing blocks of data.
    They don't interpret any data.

    Applications or libraries using them can do with that data whatever they want, e.g. send it on, process it, discard it.
    The application protocol layer knows how to interpret the data, in the case of IMAP it knows about tags and request and responses. And it is the one which has to know about compression and is the one that needs to handle it or pass this again on to the next layer.

    Doing that has the additional advantage of separating transport from protocol, so each can be tested separately, or replaced, etc.

    The code snippet you posted is doing exactly that.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    patrik08 (3rd October 2013)

Similar Threads

  1. QSslSocket get SNI
    By Landkeeper in forum Qt Programming
    Replies: 0
    Last Post: 22nd June 2013, 14:04
  2. Replies: 0
    Last Post: 5th August 2012, 01:03
  3. QSslSocket example
    By Ratheendrans in forum Qt Programming
    Replies: 3
    Last Post: 6th July 2011, 20:51
  4. Replies: 1
    Last Post: 6th May 2011, 14:11
  5. Replace -qt-zlib version from 1.2.3 to 1.2.5
    By sandor in forum Installation and Deployment
    Replies: 1
    Last Post: 28th April 2011, 08:41

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.