En esta página

QDnsHostAddressRecord Class

La clase `QDnsHostAddressRecord` almacena información sobre un registro de dirección de host. Más información...

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

Funciones públicas

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

Descripción detallada

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

Véase también QDnsLookup.

Documentación de las funciones de miembro

QDnsHostAddressRecord::QDnsHostAddressRecord()

Crea un objeto de registro de dirección de host vacío.

QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)

Crea una copia de other.

[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()

Elimina un registro de dirección de host.

QString QDnsHostAddressRecord::name() const

Devuelve el nombre de este registro.

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

Sustituye esta instancia del registro de dirección de host por other. Esta operación es muy rápida y nunca falla.

quint32 QDnsHostAddressRecord::timeToLive() const

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

QHostAddress QDnsHostAddressRecord::value() const

Devuelve el valor correspondiente a este registro de dirección de host.

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