This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCP multiple sockets

I have an embedded application that needs to be able to handle several TCP sockets at the same time. It also needs to listen in on the same port number (similar to the way HTTP does) and spin off separate tasks to process and respond to the TCP data received as required.

My question is how to implement this in RL-ARM. Do I use multiple tcp_get_socket() functions all listening on the same port number (can this be done) with associated callback functions or do I just use the one of each and if so how do I know which port the data comes from and which one to respond to? Or is there another way to do this, the Keil HTTP server seems to do it OK.