LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   to retrieve network link status (https://www.linuxquestions.org/questions/programming-9/to-retrieve-network-link-status-290001/)

minil 02-14-2005 07:06 AM

to retrieve network link status
 
hi
i need a C funtion or C program to retrieve network link status. The program should be continuously running and watching the network link . If i plug in the network cable it should show network is up . If i unplug the network cable from my NIC card it should show me Network down.( SImilar to Network status Displayed in right bottom corner of windows os)

Thanks in advance.

gr33ndata 02-15-2005 07:25 AM

Try searchin in proc files. or may be NetLink Sockets

minil 02-16-2005 03:30 AM

hi i got the details

http://www.linuxjournal.com/article/6908

.....


All times are GMT -5. The time now is 10:41 AM.