-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/include/net/gcoap: add proxy thread header file
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright (C) 2024 ML!PA Consulting GmbH | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser General | ||
* Public License v2.1. See the file LICENSE in the top level directory for | ||
* more details. | ||
*/ | ||
|
||
/** | ||
* @defgroup net_gcoap_forward_proxy_thread GCoAP Forward Proxy Thread | ||
* @ingroup net_gcoap | ||
* @brief Forward proxy thread implementation for GCoAP | ||
* | ||
* @{ | ||
* | ||
* @file | ||
* @brief Definitions for the GCoAP forward proxy thread | ||
* | ||
* @author Mariem Charrada <mariem.charrada@ml-pa.com> | ||
*/ | ||
|
||
#ifndef NET_GCOAP_FORWARD_PROXY_THREAD_H | ||
#define NET_GCOAP_FORWARD_PROXY_THREAD_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Stack size for the forward proxy thread | ||
* | ||
*/ | ||
#ifndef GCOAP_PROXY_STACK_SIZE | ||
#define GCOAP_PROXY_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE \ | ||
+ sizeof(coap_pkt_t) + GCOAP_DTLS_EXTRA_STACKSIZE) | ||
#endif | ||
|
||
/** | ||
* @brief Definition of forward proxy thread msgs. | ||
*/ | ||
enum { | ||
GCOAP_FORWARD_PROXY_MSG_SEND, | ||
}; | ||
|
||
/** | ||
* @brief Initialize the forward proxy thread | ||
*/ | ||
void gcoap_forward_proxy_thread_init(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* NET_GCOAP_FORWARD_PROXY_THREAD_H */ | ||
/** | ||
* @} | ||
*/ |