libcoap 4.3.5-develop-72190a8
Loading...
Searching...
No Matches
coap_subscribe_internal.h File Reference

CoAP subscribe internal information. More...

#include "coap_internal.h"
+ Include dependency graph for coap_subscribe_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  coap_subscription_t
 Number of notifications that may be sent non-confirmable before a confirmable message is sent to detect if observers are alive. More...
 

Functions

void coap_subscription_init (coap_subscription_t *)
 
void coap_handle_failed_notify (coap_context_t *context, coap_session_t *session, const coap_bin_const_t *token)
 Handles a failed observe notify.
 
coap_subscription_tcoap_add_observer (coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token, const coap_pdu_t *pdu)
 Adds the specified peer as observer for resource.
 
coap_subscription_tcoap_find_observer (coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token)
 Returns a subscription object for given peer.
 
void coap_touch_observer (coap_context_t *context, coap_session_t *session, const coap_bin_const_t *token)
 Flags that data is ready to be sent to observers.
 
int coap_delete_observer (coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token)
 Removes any subscription for session observer from resource and releases the allocated storage.
 
int coap_delete_observer_request (coap_resource_t *resource, coap_session_t *session, const coap_bin_const_t *token, coap_pdu_t *request)
 Removes any subscription for session observer from resource and releases the allocated storage.
 
void coap_delete_observers (coap_context_t *context, coap_session_t *session)
 Removes any subscription for session and releases the allocated storage.
 
int coap_resource_notify_observers_lkd (coap_resource_t *resource, const coap_string_t *query)
 Initiate the sending of an Observe packet for all observers of resource, optionally matching query if not NULL.
 
void coap_check_notify_lkd (coap_context_t *context)
 Checks all known resources to see if they are dirty and then notifies subscribed observers.
 
void coap_persist_cleanup (coap_context_t *context)
 Close down persist tracking, releasing any memory used.
 
coap_subscription_tcoap_persist_observe_add_lkd (coap_context_t *context, coap_proto_t e_proto, const coap_address_t *e_listen_addr, const coap_addr_tuple_t *s_addr_info, const coap_bin_const_t *raw_packet, const coap_bin_const_t *oscore_info)
 Set up an active subscription for an observe that was previously active over a coap-server inadvertant restart.
 
int coap_persist_startup_lkd (coap_context_t *context, const char *dyn_resource_save_file, const char *observe_save_file, const char *obs_cnt_save_file, uint32_t save_freq)
 Start up persist tracking using the libcoap module.
 
void coap_persist_stop_lkd (coap_context_t *context)
 Stop tracking persist information, leaving the current persist information in the files defined in coap_persist_startup().
 
int coap_cancel_observe_lkd (coap_session_t *session, coap_binary_t *token, coap_pdu_type_t message_type)
 Cancel an observe that is being tracked by the client large receive logic.
 

Detailed Description

CoAP subscribe internal information.

Definition in file coap_subscribe_internal.h.