async_select  2.0.2
async_select
Macros
async_select_configuration.h File Reference

Asynchronous network select configuration. More...

#include <stdint.h>
#include <sni.h>

Go to the source code of this file.

Macros

#define ASYNC_SELECT_CONFIGURATION_VERSION   (2)
 Compatibility sanity check value. This define value is checked in the implementation to validate that the version of this configuration is compatible with the implementation. More...
 
#define MAX_NB_ASYNC_SELECT   (16)
 Maximum number of asynchronous select that can be done at the same moment.
 
#define ASYNC_SELECT_TASK_STACK_SIZE   (2048)
 async_select task stack size in bytes.
 
#define ASYNC_SELECT_TASK_NAME   "AsyncSelect"
 async_select task name.
 
#define ASYNC_SELECT_TASK_PRIORITY   (12)
 async_select task priority.
 
#define ASYNC_SELECT_MUTEX_NAME   "AsyncSelectMutex"
 async_select mutex name.
 
#define ASYNC_SELECT_POLLING_MODE_TIMEOUT_MS   (100)
 Timeout in milliseconds used when the async_select task cannot allocate a socket for notifications. More...
 
#define ASYNC_SELECT_CLOSE_UNBLOCK_SELECT
 Set this define if a file descriptor close unblocks the select.
 

Detailed Description

Asynchronous network select configuration.

Author
MicroEJ Developer Team
Version
2.0.2
Date
13 November 2020

Definition in file async_select_configuration.h.

Macro Definition Documentation

§ ASYNC_SELECT_CONFIGURATION_VERSION

#define ASYNC_SELECT_CONFIGURATION_VERSION   (2)

Compatibility sanity check value. This define value is checked in the implementation to validate that the version of this configuration is compatible with the implementation.

This value must not be changed by the user of the CCO. This value must be incremented by the implementor of the CCO when a configuration define is added, deleted or modified.

Definition at line 37 of file async_select_configuration.h.

§ ASYNC_SELECT_POLLING_MODE_TIMEOUT_MS

#define ASYNC_SELECT_POLLING_MODE_TIMEOUT_MS   (100)

Timeout in milliseconds used when the async_select task cannot allocate a socket for notifications.

In async_select task a socket is created to notify the task and unlock the select on demand. If this socket cannot be created, then the async_select task polls for notification. This constant defines the wait time in milliseconds between each poll.

Definition at line 71 of file async_select_configuration.h.