QDnsMailExchangeRecord 类存储有关 DNS MX 记录的信息。 更多...
头: | #include <QDnsMailExchangeRecord> |
CMake: |
find_package(Qt6 COMPONENTS Network REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Network) |
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 .
构造副本为 other .
Constructs an empty mail exchange record object.
赋值数据源于 other 对象到此记录对象,并返回它的引用。
Destroys a mail exchange record.
Returns the domain name of the mail exchange for this record.
返回此记录的名称。
Returns the preference for this record.
Swaps this mail exchange record with other 。此函数非常快且从不失败。
返回此记录有效的持续时间 (以秒为单位)。