QDnsMailExchangeRecord 类

The QDnsMailExchangeRecord class stores information about a DNS MX record. 更多...

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

公共函数

QDnsMailExchangeRecord ()
QDnsMailExchangeRecord (const QDnsMailExchangeRecord & other )
~QDnsMailExchangeRecord ()
QString exchange () const
QString name () const
quint16 preference () const
void swap (QDnsMailExchangeRecord & other )
quint32 timeToLive () const
QDnsMailExchangeRecord & operator= (QDnsMailExchangeRecord && other )
QDnsMailExchangeRecord & operator= (const QDnsMailExchangeRecord & other )

详细描述

The QDnsMailExchangeRecord class stores information about a DNS MX record.

When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsMailExchangeRecord 实例。

字段含义的定义在 RFC 1035 .

另请参阅 QDnsLookup .

成员函数文档编制

QDnsMailExchangeRecord:: QDnsMailExchangeRecord ()

构造空邮件交换记录对象。

QDnsMailExchangeRecord:: QDnsMailExchangeRecord (const QDnsMailExchangeRecord & other )

构造副本为 other .

QDnsMailExchangeRecord:: ~QDnsMailExchangeRecord ()

销毁邮件交换记录。

QString QDnsMailExchangeRecord:: exchange () const

Returns the domain name of the mail exchange for this record.

QString QDnsMailExchangeRecord:: name () const

返回此记录的名称。

quint16 QDnsMailExchangeRecord:: preference () const

Returns the preference for this record.

void QDnsMailExchangeRecord:: swap ( QDnsMailExchangeRecord & other )

Swaps this mail exchange record with other 。此函数非常快且从不失败。

quint32 QDnsMailExchangeRecord:: timeToLive () const

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

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

移动赋值运算符。

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

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