Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

light weight IP

Altera_Forum
Honored Contributor II
995 Views

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.
0 Kudos
0 Replies
Reply