Does FreeRTOS_bind() supports binding to multiple IP addresses of the device on which it is running, so that TCP/IP server can listen for incoming connections from multiple IP address?
We have two ethernet ports on our device having ST Micro Controller (STM32F722RE)
We are using FreeRTOS+TCP Multi.
Its expected that the application running on this device shall be listening on both ethernet ports of the device (I.e. two different IP addresses) from multiple clients.
We are developing a TCP/IP server which will be running on this device. This server will be listening for incoming connections from multiple clients.
Should we have to create two different (server) sockets which will be listening for incoming connections on multiple IP addresses (of a device)?
We have to create ony one (server) socket which can listen for incoming connection on two multiple IP addresses (of a device)?
As per my understanding “bind()” API in windows and linux supports “INADDR_ANY”, I.e. When INADDR_ANY is specified in the bind call the socket will be bound to all local interfaces.
Does FreeRTOS_bind() supports the same feature? So that we can have only one server socket which which will be listening for incoming connections on multiple IP addresses (of same device)?
Any input, clarification regarding this will be helpful.