QDnsMailExchangeRecord 類存儲有關 DNS MX 記錄的信息。 更多...
| 頭: |
#include <QDnsMailExchangeRecord>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
|
| 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= (const QDnsMailExchangeRecord & other ) |
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 .
構造空郵件交換記錄對象。
構造副本為 other .
[noexcept]
QDnsMailExchangeRecord::
~QDnsMailExchangeRecord
()
銷毀郵件交換記錄。
Returns the domain name of the mail exchange for this record.
返迴此記錄的名稱。
Returns the preference for this record.
[noexcept]
void
QDnsMailExchangeRecord::
swap
(
QDnsMailExchangeRecord
&
other
)
Swaps this mail exchange record with other 。此操作很快且從不失敗。
返迴此記錄有效的持續時間 (以秒為單位)。
賦值數據源於 other 對象到此記錄對象,並返迴它的引用。