If the bind was successful then 0 is returned (0 is the standard Berkeley sockets success return value, contrary to the FreeRTOS standard where 0 means fail!).
FREERTOS_EADDRINUSE is returned if an attempt is made to bind to a port that is already in use.
FREERTOS_ENOBUFS is returned if there was insufficient FreeRTOS heap memory to complete the bind operation.
FREERTOS_EINVAL is returned if the socket is already bound.
FREERTOS_EADDRNOTAVAIL is returned if pxAddress is NULL.
See the example on the FreeRTOS_socket() API documentation page.
[ Back to the top ] [ About FreeRTOS ] [ Privacy ] [ FreeRTOS+ Sitemap ] [ Main FreeRTOS Sitemap ] [ ]
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.