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_EINVAL is returned if the socket did not get bound, probably because the specified port number was already in use.
-FREERTOS_ECANCELED is returned if the calling RTOS task did not get a response from the IP RTOS task to the bind request.
See the examples on the FreeRTOS+TCP networking tutorial page, and on the FreeRTOS_socket() API documentation page.
[ Back to the top ] [ About FreeRTOS ] [ Privacy ] [ FreeRTOS Labs Sitemap ] [ Main FreeRTOS Sitemap ] [ ]
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.