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 ().
Returns the list of resources.