[Qt-interest] QTcpSocket::QIODevice::readAll() HTTP Response Broken into Pieces
Thiago Macieira
thiago.macieira at trolltech.com
Tue Apr 7 13:57:56 CEST 2009
Em Terça-feira 07 Abril 2009, às 13:46:36, Neel Basu escreveu:
> When I am sending "ONE" request to SomeHost on Port 80
> I should get "Only ONE" Response (Please Correct Me If I am wrong on this
> point) Holding the Response Headers and Response data.
You're not correct :-)
TCP data comes in packets and they form a stream. Due to the way the packets
are broken down, you may receive in many different chunks of data or just one.
It really depends on how fast you're reading the data.
If your application waited 10 minutes before trying to read, I'm sure it would
receive everything in one single call to readAll().
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090407/fa735fc1/attachment.bin
More information about the Qt-interest-old
mailing list