This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C1294XL: Socket connection status : live or not

Part Number: EK-TM4C1294XL

I have created a TCP server using MCU. Now when I am sending and receiving data to/from the TCP client I am able to know if the client is still connected to my device or not. But when there is no data sharing I am completely blind about the status of the connection between the server and the client. 

I am using Hercules software to simulate it as TCP client.

Now following one of the threads of TI forum https://e2e.ti.com/support/processors-group/processors/f/processors-forum/392427/ndk-socket-is-live-or-not/1394606#1394606 (link of the thread) I used getpeername api to get the IP address of the connected client. So when the client is connected I get the correct IP address. But when I have broken the connection through hercules software even though I am getting the correct IP address which is quite confusing to me,

Please help me with this.

Thanks in advance.