A modular collection of resources for a server. More...
#include <gcoap.h>
Data Fields | |
const coap_resource_t * | resources |
First element in the array of resources. | |
size_t | resources_len |
Length of array. | |
gcoap_socket_type_t | tl_type |
Transport type for the listener. | |
gcoap_link_encoder_t | link_encoder |
Writes a link for a resource. | |
struct gcoap_listener * | next |
Next listener in list. | |
gcoap_request_matcher_t | request_matcher |
Function that picks a suitable request handler from a request. | |
gcoap_link_encoder_t gcoap_listener::link_encoder |
struct gcoap_listener* gcoap_listener::next |
gcoap_request_matcher_t gcoap_listener::request_matcher |
Function that picks a suitable request handler from a request.
const coap_resource_t* gcoap_listener::resources |
gcoap_socket_type_t gcoap_listener::tl_type |
Transport type for the listener.
Any transport supported by the implementation can be set as a flag. If GCOAP_SOCKET_TYPE_UNDEF is set, the listener listens on all supported transports. If non of the transports beyond UDP are compiled in (i.e. no usage of modules gcoap_dtls
, ...) this will be ignored and GCOAP_SOCKET_TYPE_UDP assumed.