QCoapResourceDiscoveryReply Class

The QCoapResourceDiscoveryReply class holds the data of a CoAP reply for a resource discovery request. 更多...

頭: #include <QCoapResourceDiscoveryReply>
qmake: QT += coap
繼承: QCoapReply

注意: 此類的所有函數 可重入 .

公共函數

QVector<QCoapResource> resources () const

信號

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

詳細描述

This class is used for discovery requests. It emits the discovered () signal if and when resources are discovered. When using a multicast address for discovery, the discovered () signal will be emitted once for each response received.

注意: A QCoapResourceDiscoveryReply is a QCoapReply that stores also a list of QCoapResources.

另請參閱 QCoapClient , QCoapRequest , QCoapReply ,和 QCoapResource .

成員函數文檔編製

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

This signal is emitted whenever a CoAP resource is discovered.

The reply parameter contains a pointer to the reply that has just been received, and resources contains a list of resources that were discovered.

另請參閱 QCoapReply::finished ().

QVector < QCoapResource > QCoapResourceDiscoveryReply:: resources () const

Returns the list of resources.