QDnsHostAddressRecord Class
Die Klasse QDnsHostAddressRecord speichert Informationen über einen Host-Adressdatensatz. Mehr...
Kopfzeile: | #include <QDnsHostAddressRecord> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QDnsHostAddressRecord ist Teil von Network Programming API und Implicitly Shared Classes.
Ö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) |
Detaillierte 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 der Mitgliedsfunktionen
QDnsHostAddressRecord::QDnsHostAddressRecord()
Konstruiert ein leeres Hostadressen-Datensatzobjekt.
QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)
Konstruiert eine Kopie von other.
[noexcept]
QDnsHostAddressRecord::~QDnsHostAddressRecord()
Zerstört einen Hostadressdatensatz.
QString QDnsHostAddressRecord::name() const
Gibt den Namen für diesen Datensatz zurück.
[noexcept]
void QDnsHostAddressRecord::swap(QDnsHostAddressRecord &other)
Tauscht diese Host-Adressdatensatz-Instanz mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.
quint32 QDnsHostAddressRecord::timeToLive() const
Gibt die Dauer in Sekunden zurück, für die dieser Datensatz gültig ist.
QHostAddress QDnsHostAddressRecord::value() const
Gibt den Wert für diesen Hostadressdatensatz zurück.
QDnsHostAddressRecord &QDnsHostAddressRecord::operator=(const QDnsHostAddressRecord &other)
Weist die Daten des Objekts other diesem Datensatzobjekt zu und gibt einen Verweis darauf zurück.
© 2025 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.