En esta página

QDnsMailExchangeRecord Class

La clase QDnsMailExchangeRecord almacena información sobre un registro MX de DNS. Más...

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

Funciones públicas

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)

Descripción detallada

Al realizar una búsqueda de un servicio, se devolverán cero o más registros. Cada registro está representado por una instancia de QDnsMailExchangeRecord.

El significado de los campos se define en el RFC 1035.

Véase también QDnsLookup.

Documentación de las funciones de miembro

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

Crea un objeto de registro de intercambio de correo vacío.

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

Crea una copia de other.

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

Elimina un registro de intercambio de correo.

QString QDnsMailExchangeRecord::exchange() const

Devuelve el nombre de dominio del servidor de correo (mail exchange) correspondiente a este registro.

QString QDnsMailExchangeRecord::name() const

Devuelve el nombre de este registro.

quint16 QDnsMailExchangeRecord::preference() const

Devuelve la preferencia asociada a este registro.

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

Intercambia este registro de correspondencia con other. Esta operación es muy rápida y nunca falla.

quint32 QDnsMailExchangeRecord::timeToLive() const

Devuelve la duración, en segundos, durante la cual este registro es válido.

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

Asigna los datos del objeto « other » a este objeto de registro y devuelve una referencia al mismo.

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