|Hint: Use the tree menu to navigate groups of related pages|
|FreeRTOS+UDP was removed from the FreeRTOS kernel download from FreeRTOS V10.1.0. See the FreeRTOS+TCP stack, which can be configured for UDP only use, as an alternative.|
[FreeRTOS Embedded IP Stack API]
xSocket_t FreeRTOS_socket( BaseType_t xDomain, BaseType_t xType, BaseType_t xProtocol );
Create a UDP socket.
The function parameters are not used other than to check they contain the expected values (and only then when configASSERT() is defined in FreeRTOSConfig.h). The parameters are included in the function prototype to ensure consistency with the expected standard Berkeley sockets prototype, and for future compatibility as FreeRTOS+UDP evolves.
Must be set to FREERTOS_AF_INET.
Must be set to FREERTOS_SOCK_DGRAM.
Must be set to FREERTOS_IPPROTO_UDP.
If a socket is created successfully, then the socket handle is returned. If there is insufficient FreeRTOS heap memory available for the socket to be created then FREERTOS_INVALID_SOCKET is returned.