Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 75 of file qhostinfo_p.h.

Member Function Documentation

◆ fromName()

QHostInfo QHostInfoAgent::fromName ( const QString & hostName)
static

Definition at line 78 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 391 of file qhostinfo.cpp.

References AF_INET6, QByteArray::constData(), QList< T >::constData(), QString::fromLocal8Bit(), QString::fromWCharArray(), QHostInfo::HostNotFound, i, QString::isEmpty(), QHostInfo::NoError, QString::number(), qDebug, results, QHostAddress::setAddress(), 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 355 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: