QDnsHostAddressRecord 类存储有关主机地址记录的信息。 更多...
| 头: | #include <QDnsHostAddressRecord> |
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
| QDnsHostAddressRecord () | |
| QDnsHostAddressRecord (const QDnsHostAddressRecord & other ) | |
| ~QDnsHostAddressRecord () | |
| QString | name () const |
| void | swap (QDnsHostAddressRecord & other ) |
| quint32 | timeToLive () const |
| QHostAddress | value () const |
| QDnsHostAddressRecord & | operator= (const QDnsHostAddressRecord & other ) |
当履行地址查找时,将返回零条或多条记录。每条记录由 QDnsHostAddressRecord 实例进行表示。
另请参阅 QDnsLookup .
构造空的主机地址记录对象。
构造副本为 other .
销毁主机地址记录。
返回此记录的名称。
交换此主机地址记录实例与 other 。此函数非常快且从不失败。
返回此记录有效的持续时间 (以秒为单位)。
返回此主机地址记录的值。
赋值数据源于 other 对象到此记录对象,并返回它的引用。