Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

light 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.
No RepliesBe the first to reply