Loading...
Searching...
No Matches
nanocoap_cache_entry_t Struct Reference

Cache container that holds a coap_pkt_t struct. More...

Detailed Description

Cache container that holds a coap_pkt_t struct.

Definition at line 61 of file cache.h.

#include <cache.h>

Data Fields

clist_node_t node
 needed for clist_t, must be the first struct member!
 
uint8_t cache_key [CONFIG_NANOCOAP_CACHE_KEY_LENGTH]
 the calculated cache key, see nanocoap_cache_key_generate().
 
coap_pkt_t response_pkt
 packet representation of the response
 
uint8_t response_buf [CONFIG_NANOCOAP_CACHE_RESPONSE_SIZE]
 buffer to hold the response message.
 
size_t response_len
 length of the message in response
 
uint8_t request_method
 the method of the initial request
 
bool truncated
 the cached response is truncated
 
uint32_t max_age
 absolute system time in seconds until which this cache entry is considered valid.
 

Field Documentation

◆ cache_key

uint8_t nanocoap_cache_entry_t::cache_key[CONFIG_NANOCOAP_CACHE_KEY_LENGTH]

the calculated cache key, see nanocoap_cache_key_generate().

Definition at line 70 of file cache.h.

◆ max_age

uint32_t nanocoap_cache_entry_t::max_age

absolute system time in seconds until which this cache entry is considered valid.

Definition at line 93 of file cache.h.

◆ node

clist_node_t nanocoap_cache_entry_t::node

needed for clist_t, must be the first struct member!

Definition at line 65 of file cache.h.

◆ request_method

uint8_t nanocoap_cache_entry_t::request_method

the method of the initial request

Definition at line 84 of file cache.h.

◆ response_buf

uint8_t nanocoap_cache_entry_t::response_buf[CONFIG_NANOCOAP_CACHE_RESPONSE_SIZE]

buffer to hold the response message.

Definition at line 80 of file cache.h.

◆ response_len

size_t nanocoap_cache_entry_t::response_len

length of the message in response

Definition at line 82 of file cache.h.

◆ response_pkt

coap_pkt_t nanocoap_cache_entry_t::response_pkt

packet representation of the response

Definition at line 75 of file cache.h.

◆ truncated

bool nanocoap_cache_entry_t::truncated

the cached response is truncated

Definition at line 86 of file cache.h.


The documentation for this struct was generated from the following file: