Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QHostInfoAgent Class Reference

#include <qhostinfo_p.h>

+ Collaboration diagram for QHostInfoAgent:

Static Public Member Functions

static QHostInfo fromName (const QString &hostName)
 
static QHostInfo lookup (const QString &hostName)
 
static QHostInfo reverseLookup (const QHostAddress &address)
 

Detailed Description

Definition at line 79 of file qhostinfo_p.h.

Member Function Documentation

◆ fromName()

QHostInfo QHostInfoAgent::fromName ( const QString hostName)
static

Definition at line 75 of file qhostinfo_unix.cpp.

References QByteArray::constData(), lookup(), maybeRefreshResolver(), qDebug, results, reverseLookup(), and QString::toLatin1().

Referenced by QHostInfo::fromName(), and QHostInfoRunnable::run().

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

◆ lookup()

QHostInfo QHostInfoAgent::lookup ( const QString hostName)
static

Definition at line 386 of file qhostinfo.cpp.

References AF_INET6, QList< T >::append(), QList< T >::at(), QByteArray::constData(), QList< T >::constData(), QListSpecialMethodsBase< T >::contains(), QList< T >::count(), QString::fromLocal8Bit(), QString::fromWCharArray(), QHostInfo::HostNotFound, i, QString::isEmpty(), QByteArray::isEmpty(), QList< T >::isEmpty(), QHostInfo::NoError, QString::number(), qDebug, results, QUrl::toAce(), QString::toLatin1(), QCoreApplication::translate(), and QHostInfo::UnknownError.

Referenced by fromName(), and QHostInfo::fromName().

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

◆ reverseLookup()

QHostInfo QHostInfoAgent::reverseLookup ( const QHostAddress address)
static

Definition at line 350 of file qhostinfo.cpp.

References AF_INET6, QString::fromLatin1(), QAbstractSocket::IPv4Protocol, QList< T >::isEmpty(), NI_MAXHOST, and results.

Referenced by fromName().

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

The documentation for this class was generated from the following files: