QCoapResourceDiscoveryReply Class

Die Klasse QCoapResourceDiscoveryReply enthält die Daten einer CoAP-Antwort auf eine Resource Discovery-Anfrage. Mehr...

Kopfzeile: #include <QCoapResourceDiscoveryReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS Coap)
target_link_libraries(mytarget PRIVATE Qt6::Coap)
qmake: QT += coap
Vererbungen: QCoapReply

Hinweis: Alle Funktionen in dieser Klasse sind reentrant.

Öffentliche Funktionen

QList<QCoapResource> resources() const

Signale

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

Detaillierte Beschreibung

Diese Klasse wird für Discovery-Anfragen verwendet. Sie gibt das Signal discovered() aus, wenn Ressourcen entdeckt werden. Wenn eine Multicast-Adresse für die Suche verwendet wird, wird das Signal discovered() einmal für jede empfangene Antwort ausgegeben.

Hinweis: Ein QCoapResourceDiscoveryReply ist ein QCoapReply, das auch eine Liste von QCoapResources speichert.

Siehe auch QCoapClient, QCoapRequest, QCoapReply, und QCoapResource.

Dokumentation der Mitgliedsfunktionen

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

Dieses Signal wird immer dann ausgegeben, wenn eine CoAP-Ressource entdeckt wurde.

Der Parameter reply enthält einen Zeiger auf die soeben empfangene Antwort, und resources enthält eine Liste der gefundenen Ressourcen.

Siehe auch QCoapReply::finished().

QList<QCoapResource> QCoapResourceDiscoveryReply::resources() const

Gibt die Liste der Ressourcen zurück.

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