QCoapResourceDiscoveryReply Class

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 ().

QList < QCoapResource > QCoapResourceDiscoveryReply:: resources () const

Returns the list of resources.