17#ifndef COAP_CACHE_INTERNAL_H_
18#define COAP_CACHE_INTERNAL_H_
22#include "coap_uthash_internal.h"
24#if COAP_SERVER_SUPPORT
109 const uint16_t *options,
size_t count);
140 unsigned int idle_time);
Pulls together all the internal only header files.
Default network I/O functions.
coap_cache_entry_t * coap_cache_get_by_pdu_lkd(coap_session_t *session, const coap_pdu_t *pdu, coap_cache_session_based_t session_based)
Searches for a cache-entry corresponding to pdu.
void coap_digest_free(coap_digest_ctx_t *digest_ctx)
Free off coap_digest_ctx_t.
int coap_cache_ignore_options_lkd(coap_context_t *context, const uint16_t *options, size_t count)
Define the CoAP options that are not to be included when calculating the cache-key.
coap_cache_entry_t * coap_cache_get_by_key_lkd(coap_context_t *context, const coap_cache_key_t *cache_key)
Searches for a cache-entry identified by cache_key.
coap_cache_entry_t * coap_new_cache_entry_lkd(coap_session_t *session, const coap_pdu_t *pdu, coap_cache_record_pdu_t record_pdu, coap_cache_session_based_t session_based, unsigned int idle_time)
Create a new cache-entry hash keyed by cache-key derived from the PDU.
struct coap_digest_t coap_digest_t
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.
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.
void coap_expire_cache_entries(coap_context_t *context)
Expire coap_cache_entry_t entries.
coap_digest_ctx_t * coap_digest_setup(void)
Initialize a coap_digest.
void(* coap_cache_app_data_free_callback_t)(void *data)
Callback to free off the app data when the cache-entry is being deleted / freed off.
coap_cache_session_based_t
uint64_t coap_tick_t
This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.
coap_cache_app_data_free_callback_t callback
unsigned int idle_timeout
coap_cache_key_t * cache_key
The CoAP stack's global state is stored in a coap_context_t object.
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...