In questa pagina

QDnsMailExchangeRecord Class

La classe QDnsMailExchangeRecord memorizza le informazioni relative a un record MX DNS. Per saperne di più...

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

Funzioni pubbliche

QDnsMailExchangeRecord()
QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)
~QDnsMailExchangeRecord()
QString exchange() const
QString name() const
quint16 preference() const
void swap(QDnsMailExchangeRecord &other)
quint32 timeToLive() const
QDnsMailExchangeRecord &operator=(const QDnsMailExchangeRecord &other)

Descrizione dettagliata

Quando si esegue una ricerca su un servizio, vengono restituiti zero o più record. Ogni record è rappresentato da un'istanza di QDnsMailExchangeRecord.

Il significato dei campi è definito nella RFC 1035.

Vedi anche QDnsLookup.

Documentazione delle funzioni membro

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

Crea un oggetto record di mail exchange vuoto.

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

Crea una copia di other.

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

Elimina un record di mail exchange.

QString QDnsMailExchangeRecord::exchange() const

Restituisce il nome di dominio del mail exchange associato a questo record.

QString QDnsMailExchangeRecord::name() const

Restituisce il nome di questo record.

quint16 QDnsMailExchangeRecord::preference() const

Restituisce l'impostazione relativa a questo record.

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

Scambia questo record di scambio di posta con other. Questa operazione è molto veloce e non fallisce mai.

quint32 QDnsMailExchangeRecord::timeToLive() const

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

QDnsMailExchangeRecord &QDnsMailExchangeRecord::operator=(const QDnsMailExchangeRecord &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.