QDnsMailExchangeRecord 類

QDnsMailExchangeRecord 類存儲有關 DNS MX 記錄的信息。 更多...

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

公共函數

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

詳細描述

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

字段含義的定義在 RFC 1035 .

另請參閱 QDnsLookup .

成員函數文檔編製

QDnsMailExchangeRecord:: QDnsMailExchangeRecord (const QDnsMailExchangeRecord & other )

構造副本為 other .

QDnsMailExchangeRecord:: QDnsMailExchangeRecord ()

構造空郵件交換記錄對象。

QDnsMailExchangeRecord &QDnsMailExchangeRecord:: operator= (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

返迴此記錄有效的持續時間 (以秒為單位)。