[Qt-interest] slot connected to QAbstractSocket::QIODevice::readyRead () recieves multiple responses at once
Thiago Macieira
thiago.macieira at trolltech.com
Wed Apr 15 19:37:51 CEST 2009
Em Quarta-feira 15 Abril 2009, às 14:22:05, Neel Basu escreveu:
> If a big response is splitted into multiple messages would they have the
> same Acknowledgement Number
If one side sends two TCP packets in sequence, the receiver is allowed to
reply with only one TCP packet with ACK of the highest sequence number. That
means the receiver has received all packets up until that.
If the receiver only received the latter of two packets, it cannot use that
second packet's sequence number in the ACK. It has to use the ACK from before
the the first of the two packets (in your example, that would be 0). But
there's an extension that allows the server to say, in addition, which other
byte ranges it has received, so that the sender doesn't have to resend them.
--
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/20090415/b3dda35a/attachment.bin
More information about the Qt-interest-old
mailing list