mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-22 17:08:43 +08:00
Update comments about NetworkContext definition (#461)
Small change that simply specifies why the NetworkContext must be defined by each compilation unit along with details on how to include it to your project. Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
d264c1f153
commit
1c2c671e7a
@ -56,8 +56,13 @@
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct.
|
||||
* void * is used as this utility can be used by both plaintext and TLS demos. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* This utility is used by both TLS and plaintext HTTP demos, so define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
void * pParams;
|
||||
|
@ -122,7 +122,13 @@
|
||||
*/
|
||||
#define IOT_CORE_ALPN_PROTOCOL_NAME "\x0ex-amzn-http-ca"
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* When using multiple transports in the same compilation unit, define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
TlsTransportParams_t * pParams;
|
||||
|
@ -164,7 +164,13 @@
|
||||
*/
|
||||
#define httpexampleNUMBER_HTTP_PATHS ( 4 )
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* When using multiple transports in the same compilation unit, define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
PlaintextTransportParams_t * pParams;
|
||||
|
@ -141,7 +141,13 @@
|
||||
*/
|
||||
#define DELAY_BETWEEN_DEMO_RETRY_ITERATIONS_TICKS ( pdMS_TO_TICKS( 5000U ) )
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* When using multiple transports in the same compilation unit, define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
TlsTransportParams_t * pParams;
|
||||
|
@ -194,7 +194,13 @@
|
||||
*/
|
||||
#define DELAY_BETWEEN_DEMO_RETRY_ITERATIONS_TICKS ( pdMS_TO_TICKS( 5000U ) )
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* When using multiple transports in the same compilation unit, define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
TlsTransportParams_t * pParams;
|
||||
|
@ -166,7 +166,13 @@
|
||||
*/
|
||||
#define DELAY_BETWEEN_DEMO_RETRY_ITERATIONS_TICKS ( pdMS_TO_TICKS( 5000U ) )
|
||||
|
||||
/* Each compilation unit must define the NetworkContext struct. */
|
||||
/**
|
||||
* @brief Each compilation unit that consumes the NetworkContext must define it.
|
||||
* It should contain a single pointer to the type of your desired transport.
|
||||
* When using multiple transports in the same compilation unit, define this pointer as void *.
|
||||
*
|
||||
* @note Transport stacks are defined in FreeRTOS-Plus/Source/Application-Protocols/network_transport.
|
||||
*/
|
||||
struct NetworkContext
|
||||
{
|
||||
TlsTransportParams_t * pParams;
|
||||
|
Reference in New Issue
Block a user