Auf dieser Seite

QDnsHostAddressRecord Class

Die Klasse „QDnsHostAddressRecord“ speichert Informationen zu einem Hostadresseintrag. Mehr...

Header: #include <QDnsHostAddressRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

Öffentliche Funktionen

QDnsHostAddressRecord()
QDnsHostAddressRecord(const QDnsHostAddressRecord &other)
~QDnsHostAddressRecord()
QString name() const
void swap(QDnsHostAddressRecord &other)
quint32 timeToLive() const
QHostAddress value() const
QDnsHostAddressRecord &operator=(const QDnsHostAddressRecord &other)

Ausführliche Beschreibung

Bei der Durchführung einer Adresssuche werden null oder mehr Datensätze zurückgegeben. Jeder Datensatz wird durch eine QDnsHostAddressRecord-Instanz dargestellt.

Siehe auch „ QDnsLookup “.

Dokumentation zu den Mitgliedsfunktionen

QDnsHostAddressRecord::QDnsHostAddressRecord()

Erstellt ein leeres Objekt für einen Hostadresseneintrag.

QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)

Erstellt eine Kopie von „ other “.

[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()

Löscht einen Host-Adresseintrag.

QString QDnsHostAddressRecord::name() const

Gibt den Namen dieses Datensatzes zurück.

[noexcept] void QDnsHostAddressRecord::swap(QDnsHostAddressRecord &other)

Ersetzt diese Instanz des Host-Adressdatensatzes durch other. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.

quint32 QDnsHostAddressRecord::timeToLive() const

Gibt die Gültigkeitsdauer dieses Datensatzes in Sekunden zurück.

QHostAddress QDnsHostAddressRecord::value() const

Gibt den Wert für diesen Hostadress-Eintrag zurück.

QDnsHostAddressRecord &QDnsHostAddressRecord::operator=(const QDnsHostAddressRecord &other)

Weist diesem Datensatzobjekt die Daten des Objekts „ other “ zu und gibt eine Referenz darauf zurück.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.