Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qdnslookup.cpp File Reference
#include "qdnslookup.h"
#include "qdnslookup_p.h"
#include <qapplicationstatic.h>
#include <qcoreapplication.h>
#include <qdatetime.h>
#include <qloggingcategory.h>
#include <qrandom.h>
#include <qurl.h>
#include <algorithm>
#include "moc_qdnslookup.cpp"
#include "moc_qdnslookup_p.cpp"
+ Include dependency graph for qdnslookup.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcDnsLookup, "qt.network.dnslookup", QtCriticalMsg) namespace
 
 Q_APPLICATION_STATIC (QDnsLookupThreadPool, theDnsLookupThreadPool)
 
static bool qt_qdnsmailexchangerecord_less_than (const QDnsMailExchangeRecord &r1, const QDnsMailExchangeRecord &r2)
 
static void qt_qdnsmailexchangerecord_sort (QList< QDnsMailExchangeRecord > &records)
 
static bool qt_qdnsservicerecord_less_than (const QDnsServiceRecord &r1, const QDnsServiceRecord &r2)
 
static void qt_qdnsservicerecord_sort (QList< QDnsServiceRecord > &records)
 
static QDnsLookupRunnable::EncodedLabel encodeLabel (const QString &label)
 
QDebug operator<< (QDebug &d, QDnsLookupRunnable *r)
 

Function Documentation

◆ encodeLabel()

static QDnsLookupRunnable::EncodedLabel encodeLabel ( const QString label)
static

Definition at line 1055 of file qdnslookup.cpp.

References ForbidLeadingDot, qt_ACE_do(), ToAceOnly, and QString::toLatin1().

+ Here is the call graph for this function:

◆ operator<<()

QDebug operator<< ( QDebug d,
QDnsLookupRunnable r 
)
inline

Definition at line 1116 of file qdnslookup.cpp.

◆ Q_APPLICATION_STATIC()

Q_APPLICATION_STATIC ( QDnsLookupThreadPool  ,
theDnsLookupThreadPool   
)

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcDnsLookup  ,
"qt.network.dnslookup"  ,
QtCriticalMsg   
)
static

Definition at line 19 of file qdnslookup.cpp.

References QThreadPool::setMaxThreadCount().

+ Here is the call graph for this function:

◆ qt_qdnsmailexchangerecord_less_than()

static bool qt_qdnsmailexchangerecord_less_than ( const QDnsMailExchangeRecord r1,
const QDnsMailExchangeRecord r2 
)
static

Definition at line 34 of file qdnslookup.cpp.

References r1, and r2.

Referenced by qt_qdnsmailexchangerecord_sort().

+ Here is the caller graph for this function:

◆ qt_qdnsmailexchangerecord_sort()

static void qt_qdnsmailexchangerecord_sort ( QList< QDnsMailExchangeRecord > &  records)
static

Definition at line 44 of file qdnslookup.cpp.

References QList< T >::at(), QList< T >::begin(), QRandomGenerator::bounded(), QList< T >::end(), QRandomGenerator::global(), i, QList< T >::isEmpty(), j, pos, qt_qdnsmailexchangerecord_less_than(), QList< T >::size(), and QList< T >::takeAt().

Referenced by QDnsLookupRunnable::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_qdnsservicerecord_less_than()

static bool qt_qdnsservicerecord_less_than ( const QDnsServiceRecord r1,
const QDnsServiceRecord r2 
)
static

Definition at line 73 of file qdnslookup.cpp.

References r1, and r2.

Referenced by qt_qdnsservicerecord_sort().

+ Here is the caller graph for this function:

◆ qt_qdnsservicerecord_sort()

static void qt_qdnsservicerecord_sort ( QList< QDnsServiceRecord > &  records)
static

Definition at line 86 of file qdnslookup.cpp.

References QList< T >::at(), QList< T >::begin(), QRandomGenerator::bounded(), QList< T >::end(), QRandomGenerator::global(), i, QList< T >::isEmpty(), j, qDebug, qPrintable, qt_qdnsservicerecord_less_than(), QList< T >::size(), and QList< T >::takeAt().

Referenced by QDnsLookupRunnable::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: