|
libcoap 4.3.1
|
Internal API for CoAP Asynchronous processing. More...
Collaboration diagram for Asynchronous Messaging:Data Structures | |
| struct | coap_async_t |
Functions | |
| coap_tick_t | coap_check_async (coap_context_t *context, coap_tick_t now) |
| Checks if there are any pending Async requests - if so, send them off. More... | |
| void | coap_delete_all_async (coap_context_t *context) |
| Removes and frees off all of the async entries for the given context. More... | |
Internal API for CoAP Asynchronous processing.
A coap_context_t object holds a list of coap_async_t objects that can be used to generate a separate response in the case a result of a request cannot be delivered immediately.
| coap_tick_t coap_check_async | ( | coap_context_t * | context, |
| coap_tick_t | now | ||
| ) |
Checks if there are any pending Async requests - if so, send them off.
Otherewise return the time remaining for the next Async to be triggered or 0 if nothing to do.
| context | The current context. |
| now | The current time in ticks. |
Definition at line 3393 of file net.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void coap_delete_all_async | ( | coap_context_t * | context | ) |
Removes and frees off all of the async entries for the given context.
| context | The context to remove all async entries from. |
Definition at line 169 of file coap_async.c.
Here is the call graph for this function:
Here is the caller graph for this function: