|
libcoap
4.0.3
|
#include <resource.h>
Public Member Functions | |
| LIST_STRUCT (subscribers) | |
| list of observers for this resource | |
Data Fields | |
| unsigned int | dirty:1 |
| set to 1 if resource has changed | |
| unsigned int | observable:1 |
| can be observed | |
| unsigned int | cacheable:1 |
| can be cached | |
| coap_method_handler_t | handler [4] |
Used to store handlers for the four coap methods GET, POST, PUT, and DELETE. | |
| coap_key_t | key |
| the actual key bytes for this resource | |
| UT_hash_handle | hh |
| coap_attr_t * | link_attr |
| attributes to be included with the link format | |
| str | uri |
| Request URI for this resource. | |
| int | flags |
Definition at line 57 of file resource.h.
| coap_resource_t::LIST_STRUCT | ( | subscribers | ) |
list of observers for this resource
| unsigned int coap_resource_t::cacheable |
can be cached
Definition at line 60 of file resource.h.
| unsigned int coap_resource_t::dirty |
set to 1 if resource has changed
Definition at line 58 of file resource.h.
| int coap_resource_t::flags |
Definition at line 85 of file resource.h.
| coap_method_handler_t coap_resource_t::handler[4] |
Used to store handlers for the four coap methods GET, POST, PUT, and DELETE.
coap_dispatch() will pass incoming requests to the handler that corresponds to its request method or generate a 4.05 response if no handler is available.
Definition at line 68 of file resource.h.
| UT_hash_handle coap_resource_t::hh |
Definition at line 73 of file resource.h.
| coap_key_t coap_resource_t::key |
the actual key bytes for this resource
Definition at line 70 of file resource.h.
| coap_attr_t* coap_resource_t::link_attr |
attributes to be included with the link format
Definition at line 74 of file resource.h.
| unsigned int coap_resource_t::observable |
can be observed
Definition at line 59 of file resource.h.
| str coap_resource_t::uri |
Request URI for this resource.
This field will point into the static memory.
Definition at line 84 of file resource.h.
1.8.1.2