Loading...
Searching...
No Matches
coap_async_internal.h
Go to the documentation of this file.
/*
* coap_async_internal.h -- state management for asynchronous messages
*
* Copyright (C) 2010-2023 Olaf Bergmann <bergmann@tzi.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
#ifndef COAP_ASYNC_INTERNAL_H_
#define COAP_ASYNC_INTERNAL_H_
#include "coap_internal.h"
#include "coap_net.h"
/* Note that if COAP_SERVER_SUPPORT is not set, then COAP_ASYNC_SUPPORT undefined */
#if COAP_ASYNC_SUPPORT
struct coap_async_t {
struct coap_async_t *next;
coap_tick_t delay;
coap_session_t *session;
coap_pdu_t *pdu;
void *appdata;
};
coap_tick_t coap_check_async(coap_context_t *context, coap_tick_t now);
void coap_delete_all_async(coap_context_t *context);
#endif /* COAP_ASYNC_SUPPORT */
#endif /* COAP_ASYNC_INTERNAL_H_ */
coap_async_t
struct coap_async_t coap_async_t
Async Entry information.
Definition coap_forward_decls.h:43
coap_internal.h
Pulls together all the internal only header files.
coap_net.h
CoAP context interface.
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:144
coap_context_t
The CoAP stack's global state is stored in a coap_context_t object.
Definition coap_net_internal.h:49
coap_pdu_t
structure for CoAP PDUs
Definition coap_pdu_internal.h:119
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:68