libcoap  4.3.0rc3
coap_async_internal.h
Go to the documentation of this file.
1 /*
2  * coap_async_internal.h -- state management for asynchronous messages
3  *
4  * Copyright (C) 2010-2021 Olaf Bergmann <bergmann@tzi.org>
5  *
6  * This file is part of the CoAP library libcoap. Please see README for terms
7  * of use.
8  */
9 
15 #ifndef COAP_ASYNC_INTERNAL_H_
16 #define COAP_ASYNC_INTERNAL_H_
17 
18 #include "coap3/net.h"
19 
20 #ifndef WITHOUT_ASYNC
21 
31 struct coap_async_t {
32  struct coap_async_t *next;
37  void* appdata;
38 };
39 
52 
58 void
60 
63 #endif /* WITHOUT_ASYNC */
64 
65 #endif /* COAP_ASYNC_INTERNAL_H_ */
uint64_t coap_tick_t
This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.
Definition: coap_time.h:120
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.
Definition: net.c:3207
void coap_delete_all_async(coap_context_t *context)
Removes and frees off all of the async entries for the given context.
Definition: async.c:137
coap_session_t * session
transaction session
struct coap_async_t * next
internally used for linking
coap_pdu_t * pdu
copy of request pdu
coap_tick_t delay
When to delay to before triggering the response 0 indicates never trigger.
The CoAP stack's global state is stored in a coap_context_t object.
structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...