diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-04 14:28:27 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-04 14:28:27 (GMT) |
commit | bd8c5da79174d18422d9db55c18d8f11ad41e27f (patch) | |
tree | 19df2d02f81cf048aab8d093c5e237e028cbd152 /src/network | |
parent | d998a761e35bb53f29477e3956421de38c9cf641 (diff) | |
download | Qt-bd8c5da79174d18422d9db55c18d8f11ad41e27f.zip Qt-bd8c5da79174d18422d9db55c18d8f11ad41e27f.tar.gz Qt-bd8c5da79174d18422d9db55c18d8f11ad41e27f.tar.bz2 |
Document some stuff in QHostInfo and QAbstractSocket
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 7 | ||||
-rw-r--r-- | src/network/socket/qabstractsocket.cpp | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 9c559ec..9092ad6 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -112,6 +112,13 @@ Q_GLOBAL_STATIC(QHostInfoLookupManager, theHostInfoLookupManager) To retrieve the name of the local host, use the static QHostInfo::localHostName() function. + \note Since Qt 4.6.1 QHostInfo is using multiple threads for DNS lookup + instead of one dedicated DNS thread. This improves performance, + but also changes the order of signal emissions when using lookupHost() + compared to previous versions of Qt. + \note Since Qt 4.6.3 QHostInfo is using a small internal 60 second DNS cache + for performance improvements. + \sa QAbstractSocket, {http://www.rfc-editor.org/rfc/rfc3492.txt}{RFC 3492} */ diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp index d990448..95721ee 100644 --- a/src/network/socket/qabstractsocket.cpp +++ b/src/network/socket/qabstractsocket.cpp @@ -172,6 +172,10 @@ This signal is emitted after connectToHost() has been called and the host lookup has succeeded. + \note Since Qt 4.6.3 QAbstractSocket may emit hostFound() + directly from the connectToHost() call since a DNS result could have been + cached. + \sa connected() */ @@ -181,6 +185,10 @@ This signal is emitted after connectToHost() has been called and a connection has been successfully established. + \note On some operating systems the connected() signal may + be directly emitted from the connectToHost() call for connections + to the localhost. + \sa connectToHost(), disconnected() */ |