このページでは

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() シグナルを放出します。ディスカバリにマルチキャストアドレスを使用する場合、受信した応答ごとに 1 回、discovered() シグナルが放出されます。

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

関連項目: QCoapClient 、QCoapRequest 、QCoapReply 、およびQCoapResource 。

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

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

この信号は、CoAPリソースが検出されるたびに送信されます。

reply パラメータには、受信したばかりの応答へのポインタが含まれ、resources には、検出されたリソースのリストが含まれます。

QCoapReply::finished()も参照してください 。

QList<QCoapResource> QCoapResourceDiscoveryReply::resources() const

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

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