mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Persist: Support tracking observe information over server restarts
Add in optional callbacks for when dynamic resources are setup and deleted. Add in optional callbacks for when observe subscriptions start and stop. Add in optional callbacks for when the observe counter is updated (can be ratelimited) for a resource as well as track when a resource is deleted. Add is support for new functions Main functions with libcoap tracking support are coap_persist_startup() coap_persist_stop() coap-server has -t option to track observe information. UDP sessions supported, as well as OSCORE over UDP. Documentation updated libcoap tracking support (as opposed to application tracking) is configurable.
This commit is contained in:
1 parent
203471118f
commit
ca609d221c
24 files changed
+2034
-37
No files matched your search
@@ -181,9 +181,9 @@ oscore_remove_context(coap_context_t *c_context, oscore_ctx_t *osc_ctx) {
|
||||
* Updates recipient_ctx.
|
||||
*/
|
||||
oscore_ctx_t *
|
||||
oscore_find_context(coap_context_t *c_context,
|
||||
coap_bin_const_t rcpkey_id,
|
||||
coap_bin_const_t *ctxkey_id,
|
||||
oscore_find_context(const coap_context_t *c_context,
|
||||
const coap_bin_const_t rcpkey_id,
|
||||
const coap_bin_const_t *ctxkey_id,
|
||||
uint8_t *oscore_r2,
|
||||
oscore_recipient_ctx_t **recipient_ctx) {
|
||||
oscore_ctx_t *pt = c_context->p_osc_ctx;
|
||||
|
||||
Reference in new issue
Block a user