libcoap
4.3.1
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-2022 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
17
#ifndef COAP_ASYNC_INTERNAL_H_
18
#define COAP_ASYNC_INTERNAL_H_
19
20
#include "
coap_internal.h
"
21
#include "
net.h
"
22
23
/* Note that if COAP_SERVER_SUPPORT is not set, then WITHOUT_ASYNC undefined */
24
#ifndef WITHOUT_ASYNC
25
35
struct
coap_async_t
{
36
struct
coap_async_t
*
next
;
37
coap_tick_t
delay
;
39
coap_session_t
*
session
;
40
coap_pdu_t
*
pdu
;
41
void
*
appdata
;
42
};
43
55
coap_tick_t
coap_check_async
(
coap_context_t
*context,
coap_tick_t
now);
56
62
void
63
coap_delete_all_async
(
coap_context_t
*context);
64
67
#endif
/* WITHOUT_ASYNC */
68
69
#endif
/* COAP_ASYNC_INTERNAL_H_ */
coap_internal.h
Pulls together all the internal only header files.
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:127
coap_check_async
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:3393
coap_delete_all_async
void coap_delete_all_async(coap_context_t *context)
Removes and frees off all of the async entries for the given context.
Definition:
coap_async.c:169
net.h
CoAP context interface.
coap_async_t
Definition:
coap_async_internal.h:35
coap_async_t::appdata
void * appdata
Definition:
coap_async_internal.h:41
coap_async_t::session
coap_session_t * session
transaction session
Definition:
coap_async_internal.h:39
coap_async_t::next
struct coap_async_t * next
internally used for linking
Definition:
coap_async_internal.h:36
coap_async_t::pdu
coap_pdu_t * pdu
copy of request pdu
Definition:
coap_async_internal.h:40
coap_async_t::delay
coap_tick_t delay
When to delay to before triggering the response 0 indicates never trigger.
Definition:
coap_async_internal.h:37
coap_context_t
The CoAP stack's global state is stored in a coap_context_t object.
Definition:
coap_net_internal.h:48
coap_pdu_t
structure for CoAP PDUs
Definition:
coap_pdu_internal.h:106
coap_session_t
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...
Definition:
cov_session_reference_model.c:5
include
coap3
coap_async_internal.h
Generated on Fri Sep 2 2022 14:47:54 for libcoap by
1.9.4