QCoapResourceDiscoveryReply Class

QCoapResourceDiscoveryReplyクラスは、リソース発見リクエストに対するCoAPリプライのデータを保持します。詳細...

ヘッダー #include <QCoapResourceDiscoveryReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS Coap)
target_link_libraries(mytarget PRIVATE Qt6::Coap)
qmake: QT += coap
継承: QCoapReply

注意:このクラスの関数はすべてリエントラントです。

パブリック関数

QList<QCoapResource> resources() const

シグナル

void discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources)

詳細説明

このクラスは発見リクエストに使用される。リソースが発見されるとdiscovered() シグナルを発行します。発見のためにマルチキャストアドレスを使用する場合、discovered() シグナルは、受信した応答ごとに1回発信されます。

注: QCoapResourceDiscoveryReplyは、QCoapResourcesのリストも格納するQCoapReply

QCoapClientQCoapRequestQCoapReplyQCoapResourceも参照してください

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

[signal] void QCoapResourceDiscoveryReply::discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources)

このシグナルは、CoAPリソースが発見されるたびに発行される。

reply パラメータは受信したばかりのリプライへのポインタを含み、resources は発見されたリソースのリストを含む。

QCoapReply::finished()も参照のこと

QList<QCoapResource> QCoapResourceDiscoveryReply::resources() const

リソースのリストを返す。

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