libcoap 4.3.5-develop-783b531
Loading...
Searching...
No Matches

Internal API for handling CoAP URIs. More...

+ Collaboration diagram for URI Support:

Data Structures

struct  coap_uri_info_t
 
struct  coap_upa_chain_t
 

Typedefs

typedef struct coap_upa_chain_t coap_upa_chain_t
 

Functions

void coap_replace_percents (coap_optlist_t *optlist)
 replace any % hex definitions with the actual character.
 
const char * coap_map_abbrev_uri_path (coap_upa_chain_t *chain, uint32_t value)
 Determine the expanded Uri-Path-Abbrev option value.
 
int coap_map_uri_path_abbrev (coap_upa_chain_t *chain, const char *path, size_t length, uint32_t *value)
 
void coap_delete_upa_chain (coap_upa_chain_t *chain)
 Clean up a UPA chain.
 

Variables

coap_uri_info_t coap_uri_scheme [COAP_URI_SCHEME_LAST]
 
coap_upa_chain_tcoap_upa_client_fallback_chain
 
coap_upa_chain_tcoap_upa_server_mapping_chain
 

Detailed Description

Internal API for handling CoAP URIs.

Typedef Documentation

◆ coap_upa_chain_t

Function Documentation

◆ coap_delete_upa_chain()

void coap_delete_upa_chain ( coap_upa_chain_t chain)

Clean up a UPA chain.

Parameters
chainThe chain to delete.

Definition at line 1271 of file coap_uri.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coap_map_abbrev_uri_path()

const char * coap_map_abbrev_uri_path ( coap_upa_chain_t chain,
uint32_t  value 
)

Determine the expanded Uri-Path-Abbrev option value.

Parameters
chainChain holding the information.
valueThe Uri-Path-Abbrev numeric value
Returns
The expanded textual path or NULL if not found.

Definition at line 1154 of file coap_uri.c.

+ Here is the caller graph for this function:

◆ coap_map_uri_path_abbrev()

int coap_map_uri_path_abbrev ( coap_upa_chain_t chain,
const char *  path,
size_t  length,
uint32_t *  value 
)

Definition at line 1167 of file coap_uri.c.

◆ coap_replace_percents()

void coap_replace_percents ( coap_optlist_t optlist)

replace any % hex definitions with the actual character.

Parameters
optlistThe optlist entry to modify if % hex definitions.

Definition at line 825 of file coap_uri.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ coap_upa_client_fallback_chain

coap_upa_chain_t* coap_upa_client_fallback_chain
extern

Definition at line 32 of file coap_uri.c.

◆ coap_upa_server_mapping_chain

coap_upa_chain_t* coap_upa_server_mapping_chain
extern

Definition at line 33 of file coap_uri.c.

◆ coap_uri_scheme

coap_uri_info_t coap_uri_scheme[COAP_URI_SCHEME_LAST]
extern

Definition at line 59 of file coap_uri.c.