The QCoapResourceDiscoveryReply class holds the data of a CoAP reply for a resource discovery request. 更多...
头: | #include <QCoapResourceDiscoveryReply> |
qmake: | QT += coap |
继承: | QCoapReply |
注意: 此类的所有函数 可重入 .
QList<QCoapResource> | resources () const |
void | discovered (QCoapResourceDiscoveryReply * reply , QList<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
,
QList
<
QCoapResource
>
resources
)
This signal is emitted whenever a CoAP resource is discovered.
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.