QDnsHostAddressRecord 类

The QDnsHostAddressRecord class stores information about a host address record. 更多...

头: #include <QDnsHostAddressRecord>
qmake: QT += network

公共函数

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

详细描述

The QDnsHostAddressRecord class stores information about a host address record.

When performing an address lookup, zero or more records will be returned. Each record is represented by a QDnsHostAddressRecord 实例。

另请参阅 QDnsLookup .

成员函数文档编制

QDnsHostAddressRecord:: QDnsHostAddressRecord ()

构造空的主机地址记录对象。

QDnsHostAddressRecord:: QDnsHostAddressRecord (const QDnsHostAddressRecord & other )

构造副本为 other .

QDnsHostAddressRecord:: ~QDnsHostAddressRecord ()

销毁主机地址记录。

QString QDnsHostAddressRecord:: name () const

返回此记录的名称。

void QDnsHostAddressRecord:: swap ( QDnsHostAddressRecord & other )

交换此主机地址记录实例与 other 。此函数非常快且从不失败。

quint32 QDnsHostAddressRecord:: timeToLive () const

返回此记录有效的持续时间 (以秒为单位)。

QHostAddress QDnsHostAddressRecord:: value () const

返回此主机地址记录的值。

QDnsHostAddressRecord &QDnsHostAddressRecord:: operator= ( QDnsHostAddressRecord && other )

移动赋值运算符。

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

赋值数据源于 other 对象到此记录对象,并返回它的引用。