Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: QSslSocket to much data?

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

    Default Re: QSslSocket to much data?

    A QString, which represents an entire xml doc
    Qt Code:
    1. <xml-response>
    2. <person>
    3. <name>charlie</name>
    4. <family-name>harper</family-name>
    5. </person>
    6. <xml-respone>
    To copy to clipboard, switch view to plain text mode 
    for example....I serialize it later with qdom....don't want to do it in readyread-slot....
    I just want to ensure that the full string is transfered....

  2. #22
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QSslSocket to much data?

    If you want to be sure then you need to parse this string while reading it. If you later want to reparse it again using QDomDocument, that's your problem. Using QDataStrem doesn't make sense here and QXmlStreamReader seems perfect for the task of processing the document.
    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.


Similar Threads

  1. QSslSocket Problems
    By tntcoda in forum Newbie
    Replies: 2
    Last Post: 24th December 2014, 22:26
  2. QSslSocket example
    By Ratheendrans in forum Qt Programming
    Replies: 3
    Last Post: 6th July 2011, 21:51
  3. How to clear/empty data from a QSslSocket
    By scieck in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2011, 00:47
  4. QSslSocket server
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 7th May 2009, 05:10
  5. NEED HELP!!! about qsslsocket
    By asnoka in forum Installation and Deployment
    Replies: 2
    Last Post: 12th May 2008, 16:12

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.