From 3d5d8b6c4ff08806934a07df77f9387edc4243df Mon Sep 17 00:00:00 2001 From: Martin Petersson Date: Fri, 1 Jul 2011 13:26:47 +0200 Subject: Add Happy-Eyeballs style IPv6 connection establishing. In the cases where a DNS lookup will give you both an IPv4 and IPv6 address, this will start two connection channels at the same time. One trying to connect using IPv4 and one on IPv6. This is done so that we can use the fastest one for the connection. To do this we have to do the hostlookup in the connection. The result is then in the cache for the individual socket so it will not need to do another lookup. Task-number: QTBUG-16458 Change-Id: I806c20168d9c5edc2831b80f82a2bd570b36d5fa Reviewed-on: http://codereview.qt.nokia.com/1003 Reviewed-by: Qt Sanity Bot Reviewed-by: Shane Kearns --- src/network/socket/qabstractsocket_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network/socket/qabstractsocket_p.h') diff --git a/src/network/socket/qabstractsocket_p.h b/src/network/socket/qabstractsocket_p.h index cf7d98895f..978fb1433a 100644 --- a/src/network/socket/qabstractsocket_p.h +++ b/src/network/socket/qabstractsocket_p.h @@ -156,6 +156,8 @@ public: QAbstractSocket::SocketError socketError; + QAbstractSocket::NetworkLayerProtocol preferredNetworkLayerProtocol; + bool prePauseReadSocketNotifierState; bool prePauseWriteSocketNotifierState; bool prePauseExceptionSocketNotifierState; -- cgit v1.2.3