このページでは

QDnsHostAddressRecord Class

QDnsHostAddressRecord クラスは、ホストアドレスレコードに関する情報を格納します。詳細...

ヘッダー: #include <QDnsHostAddressRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

パブリック関数

QDnsHostAddressRecord()
QDnsHostAddressRecord(const QDnsHostAddressRecord &other)
~QDnsHostAddressRecord()
QString name() const
void swap(QDnsHostAddressRecord &other)
quint32 timeToLive() const
QHostAddress value() const
QDnsHostAddressRecord &operator=(const QDnsHostAddressRecord &other)

詳細な説明

アドレス検索を実行すると、0 個以上のレコードが返されます。各レコードは、QDnsHostAddressRecord インスタンスによって表されます。

QDnsLookupも参照してください 。

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

QDnsHostAddressRecord::QDnsHostAddressRecord()

空のホストアドレスレコードオブジェクトを作成します。

QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)

other のコピーを作成します。

[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()

ホストアドレスレコードを削除します。

QString QDnsHostAddressRecord::name() const

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

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

このホストアドレスレコードのインスタンスを、other と入れ替えます。この操作は非常に高速で、失敗することはありません。

quint32 QDnsHostAddressRecord::timeToLive() const

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

QHostAddress QDnsHostAddressRecord::value() const

このホストアドレスレコードの値を返します。

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

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

© 2026 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.