이 페이지에서

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() 신호가 한 번씩 발산됩니다.

참고: 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

리소스 목록을 반환합니다.

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