A modular collection of resources for a server. More...
#include <server.h>
Data Fields | |
| const unicoap_resource_t * | resources |
| Reference to contiguous array of resource belonging to this listener. | |
| size_t | resource_count |
| The number of resources belonging in this listener. | |
| unicoap_request_matcher_t | request_matcher |
| Function that picks a suitable request handler from a request. | |
| unicoap_link_encoder_t | link_encoder |
| Encoder for Constrained RESTful Environments (CoRE) Link Format. | |
| unicoap_listener_t * | next |
| Next listener in linked list. | |
| unicoap_proto_set_t | protocols |
| Allowed protocols for the resources grouped together by this resource. | |
| unicoap_link_encoder_t unicoap_listener::link_encoder |
| unicoap_listener_t* unicoap_listener::next |
| unicoap_proto_set_t unicoap_listener::protocols |
Allowed protocols for the resources grouped together by this resource.
Example: Set to UNICOAP_PROTOCOL_FLAG(UNICOAP_PROTO_UDP) | UNICOAP_PROTOCOL_FLAG(UNICOAP_PROTO_DTLS) to allow only CoAP over UDP and DTLS. Alternatively you can use UNICOAP_PROTOCOLS(UNICOAP_PROTO_UDP, UNICOAP_PROTO_DTLS).
| unicoap_request_matcher_t unicoap_listener::request_matcher |
Function that picks a suitable request handler from a request.
NULL selects the default strategy that picks handlers by matching their Uri-Path to resource paths (as per the documentation of the resources and resource_count fields). | size_t unicoap_listener::resource_count |
| const unicoap_resource_t* unicoap_listener::resources |