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 |
Signals
void | discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources) |
상세 설명
이 클래스는 검색 요청에 사용됩니다. 리소스가 발견되면 discovered() 신호를 전송합니다. 검색에 멀티캐스트 주소를 사용하는 경우, discovered() 신호는 수신된 각 응답에 대해 한 번씩 전송됩니다.
참고: QCoapResourceDiscoveryReply는 QCoapResource 목록도 저장하는 QCoapReply 입니다.
QCoapClient, QCoapRequest, QCoapReply, QCoapResource도 참조하세요 .
멤버 함수 문서
[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.