I am trying to update the OS from version 2 to a later version of the mbed os. I was using the NetworkAPI previously. I am finding it difficult to understand how to use the TCPSocket::accept to get the client, and keep the connection open.
Once I have a connected client, there will be cases where I need to cycle through the list of them and send them information. How would that be achieved when it seems like the TCPSocket usage is to do the accept, ->recv()
then ->send()
then ->close()
the socket.