Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 10 months ago.
Socket Connection Status
Hi guys I have written a socket application for my mbed. The mbed connects to a nodeJs server via TCP and sends requently some data. To check the connection i use a thread thats running every 5 seconds. Its task is to reconnect to the server when the socket.is_connected() function is false.
Here comes my problem. I ran the program. It works all fine but when I close the server, the thread always tells me that there is still an open connection. Is there another way to recognice wheather a server is on- or offline?
It would be nice to hear from you.
Thanks
Ben