[Interest] TCP ACK with QDataStream -- OR: disconnect race condition detection

d3fault d3faultdotxbe at gmail.com
Sun Sep 9 21:40:06 CEST 2012

On Sep 9, 2012 12:17 PM, "Justin Karneges" <justin at affinix.com> wrote:
> You're correct in that it is reliable under the hood. The problem is
> just that most TCP APIs don't expose to the app what has been
acknowledged. It
> is pretty sad that everyone solves this by layering acks on top, when
acks are
> already being performed a layer down.

Thank you guys for explaining this, I finally get it. Too bad the
application layer doesn't have access to that information.... probably
breaks some random OSI rules and causes problems in some use cases I'm just
not thinking about (or maybe not?).

> I think it would be neat if QAbstractSocket had another signal, like
> bytesAcknowledged(), that worked by using platform-specific methods to
> out what has been definitely sent.

That sounds good too, but what I meant was more of a generic ack layer for
the [Qt] applications to use (you said lots of people end up having to do

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120909/87772660/attachment.html>

More information about the Interest mailing list