En esta página

QDnsHostAddressRecord Class

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

Cabecera: #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

Cuando se realiza una búsqueda de direcciones, se devuelven cero o más registros. Cada registro está representado por una instancia de QDnsHostAddressRecord.

Véase también QDnsLookup.

Documentación de las funciones miembro

QDnsHostAddressRecord::QDnsHostAddressRecord()

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

QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)

Construye una copia de other.

[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()

Destruye un registro de dirección de host.

QString QDnsHostAddressRecord::name() const

Devuelve el nombre de este registro.

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

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

quint32 QDnsHostAddressRecord::timeToLive() const

Devuelve la duración en segundos para la que este registro es válido.

QHostAddress QDnsHostAddressRecord::value() const

Devuelve el valor de 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.