libcoap  4.3.0
Cache Support (Internal)

CoAP Cache Structures, Enums and Functions that are not exposed to applications. More...

Data Structures

struct  coap_digest_t
 
struct  coap_cache_key_t
 
struct  coap_cache_entry_t
 

Typedefs

typedef struct coap_digest_t coap_digest_t
 
typedef void coap_digest_ctx_t
 

Functions

void coap_expire_cache_entries (coap_context_t *context)
 Expire coap_cache_entry_t entries. More...
 
coap_digest_ctx_tcoap_digest_setup (void)
 Initialize a coap_digest. More...
 
void coap_digest_free (coap_digest_ctx_t *digest_ctx)
 Free off coap_digest_ctx_t. More...
 
int coap_digest_update (coap_digest_ctx_t *digest_ctx, const uint8_t *data, size_t data_len)
 Update the coap_digest information with the next chunk of data. More...
 
int coap_digest_final (coap_digest_ctx_t *digest_ctx, coap_digest_t *digest_buffer)
 Finalize the coap_digest information into the provided digest_buffer. More...
 

Detailed Description

CoAP Cache Structures, Enums and Functions that are not exposed to applications.

Typedef Documentation

◆ coap_digest_ctx_t

typedef void coap_digest_ctx_t

Definition at line 58 of file coap_cache_internal.h.

◆ coap_digest_t

typedef struct coap_digest_t coap_digest_t

Function Documentation

◆ coap_digest_final()

int coap_digest_final ( coap_digest_ctx_t digest_ctx,
coap_digest_t digest_buffer 
)

Finalize the coap_digest information into the provided digest_buffer.

Internal function.

Parameters
digest_ctxThe coap_digest context.
digest_bufferPointer to digest buffer to update
Returns
1 success, 0 failure.

Definition at line 222 of file coap_notls.c.

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

◆ coap_digest_free()

void coap_digest_free ( coap_digest_ctx_t digest_ctx)

Free off coap_digest_ctx_t.

Always done by coap_digest_final()

Internal function.

Parameters
digest_ctxThe coap_digest context.

Definition at line 205 of file coap_notls.c.

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

◆ coap_digest_setup()

coap_digest_ctx_t* coap_digest_setup ( void  )

Initialize a coap_digest.

Internal function.

Returns
The digest context or NULL if failure.

Definition at line 194 of file coap_notls.c.

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

◆ coap_digest_update()

int coap_digest_update ( coap_digest_ctx_t digest_ctx,
const uint8_t *  data,
size_t  data_len 
)

Update the coap_digest information with the next chunk of data.

Internal function.

Parameters
digest_ctxThe coap_digest context.
dataPointer to data.
data_lenNumber of bytes.
Returns
1 success, 0 failure.

Definition at line 210 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_expire_cache_entries()

void coap_expire_cache_entries ( coap_context_t context)

Expire coap_cache_entry_t entries.

Internal function.

Parameters
contextThe context holding the coap-entries to exire

Definition at line 256 of file coap_cache.c.

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