Altera_Forum
Honored Contributor
20 years agolight weight IP
I am trying to detect if the ethernet cable has been pulled off.
To the part where the code says, that the connection could not be established, I put reset_connection(); This works during the menue is shown in the telnet window. But if a task like the "Toggle boards LED" has been started and one pulls off the cable, connection cannot be reestablished. It seems as the system is "blocking". Using the debugger does not show a reason for this. How can one catch this exception, so the system can be connected again with telnet? My idea was using a getnameofpeer-function. Thanks in advance for your help. andy.