QDnsMailExchangeRecord Class

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)

詳細説明

サービスの検索を実行すると、0 個以上のレコードが返されます。各レコードは QDnsMailExchangeRecord インスタンスで表されます。

フィールドの意味はRFC 1035で定義されている。

QDnsLookupも参照してください

メンバ関数のドキュメント

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

空のメール交換記録オブジェクトを構築します。

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

other のコピーを作成する。

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

メール交換記録を破棄する。

QString QDnsMailExchangeRecord::exchange() const

このレコードのメール交換のドメイン名を返します。

QString QDnsMailExchangeRecord::name() const

このレコードの名前を返します。

quint16 QDnsMailExchangeRecord::preference() const

このレコードのプリファレンスを返します。

[noexcept] void QDnsMailExchangeRecord::swap(QDnsMailExchangeRecord &other)

このメール交換レコードをother と交換する。この操作は非常に速く、失敗することはない。

quint32 QDnsMailExchangeRecord::timeToLive() const

このレコードの有効期間を秒単位で返します。

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

other オブジェクトのデータをこのレコードオブジェクトに代入し、その参照を返す。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.