libcoap
4.3.5-develop-5347a62
Loading...
Searching...
No Matches
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-2026 Olaf Bergmann <bergmann@tzi.org>
5
*
6
* SPDX-License-Identifier: BSD-2-Clause
7
*
8
* This file is part of the CoAP library libcoap. Please see README for terms
9
* of use.
10
*/
11
16
17
#ifndef COAP_ASYNC_INTERNAL_H_
18
#define COAP_ASYNC_INTERNAL_H_
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
/* Note that if COAP_SERVER_SUPPORT is not set, then COAP_ASYNC_SUPPORT undefined */
25
#if COAP_ASYNC_SUPPORT
26
27
#ifndef COAP_ASYNC_MAX_CONTEXT
28
#define COAP_ASYNC_MAX_CONTEXT 64
29
#endif
30
#ifndef COAP_ASYNC_MAX_SESSION
31
#define COAP_ASYNC_MAX_SESSION 8
32
#endif
33
43
struct
coap_async_t
{
44
struct
coap_async_t
*next;
45
coap_tick_t
delay;
47
coap_session_t
*session;
48
coap_pdu_t
*pdu;
49
void
*app_data;
50
coap_app_data_free_callback_t
app_cb;
52
coap_address_t
local_if;
54
};
55
76
coap_async_t
*coap_register_async_lkd(
coap_session_t
*session,
77
const
coap_pdu_t
*request,
78
coap_tick_t
delay);
79
92
int
coap_check_async(
coap_context_t
*context,
coap_tick_t
now,
coap_tick_t
*tim_rem);
93
107
coap_async_t
*coap_find_async_lkd(
coap_session_t
*session,
coap_bin_const_t
token);
108
119
void
coap_async_trigger_lkd(
coap_async_t
*async);
120
133
void
coap_async_set_delay_lkd(
coap_async_t
*async,
coap_tick_t
delay);
134
153
void
*coap_async_set_app_data2_lkd(
coap_async_t
*async_entry,
154
void
*data,
155
coap_app_data_free_callback_t
callback);
156
166
void
coap_free_async_lkd(
coap_session_t
*session,
coap_async_t
*async);
167
173
void
coap_delete_all_async(
coap_context_t
*context);
174
176
177
#endif
/* COAP_ASYNC_SUPPORT */
178
179
#ifdef __cplusplus
180
}
181
#endif
182
183
#endif
/* COAP_ASYNC_INTERNAL_H_ */
coap_async_t
struct coap_async_t coap_async_t
Async Entry information.
Definition
coap_forward_decls.h:47
coap_pdu_t
struct coap_pdu_t coap_pdu_t
PDU information.
Definition
coap_forward_decls.h:104
coap_address_t
struct coap_address_t coap_address_t
Definition
coap_forward_decls.h:36
coap_session_t
struct coap_session_t coap_session_t
Definition
coap_forward_decls.h:129
coap_tick_t
uint64_t coap_tick_t
This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.
Definition
coap_time.h:149
coap_app_data_free_callback_t
void(* coap_app_data_free_callback_t)(void *data)
Callback to free off the app data when the entry is being deleted / freed off.
Definition
coap_session.h:124
coap_bin_const_t
CoAP binary data definition with const data.
Definition
coap_str.h:65
coap_context_t
The CoAP stack's global state is stored in a coap_context_t object.
Definition
coap_net_internal.h:55
coap_pdu_t
structure for CoAP PDUs
Definition
coap_pdu_internal.h:140
coap_session_t
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...
Definition
coap_session_internal.h:86
libcoap
include
coap3
coap_async_internal.h
Generated on
for libcoap by
1.15.0