In questa pagina

QDnsHostAddressRecord Class

La classe QDnsHostAddressRecord memorizza le informazioni relative a un record di indirizzo host. Per saperne di più...

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

Funzioni pubbliche

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

Descrizione dettagliata

Quando si esegue una ricerca di indirizzi, verranno restituiti zero o più record. Ciascun record è rappresentato da un'istanza di QDnsHostAddressRecord.

Vedi anche QDnsLookup.

Documentazione delle funzioni membro

QDnsHostAddressRecord::QDnsHostAddressRecord()

Crea un oggetto record di indirizzo host vuoto.

QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)

Crea una copia di other.

[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()

Elimina un record di indirizzo host.

QString QDnsHostAddressRecord::name() const

Restituisce il nome di questo record.

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

Sostituisce questa istanza del record di indirizzo host con other. Questa operazione è molto veloce e non fallisce mai.

quint32 QDnsHostAddressRecord::timeToLive() const

Restituisce la durata, espressa in secondi, per la quale questo record è valido.

QHostAddress QDnsHostAddressRecord::value() const

Restituisce il valore associato a questo record di indirizzo host.

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

Assegna i dati dell'oggetto ` other ` a questo oggetto record e restituisce un riferimento ad esso.

© 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.