Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-14-2005, 08:06 AM   #1
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Rep: Reputation: 15
Angry to retrieve network link status

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.
Old 02-15-2005, 08:25 AM   #2
Registered: Aug 2003
Location: DMZ
Distribution: Ubuntu
Posts: 144

Rep: Reputation: 15
Try searchin in proc files. or may be NetLink Sockets
Old 02-16-2005, 04:30 AM   #3
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
hi i got the details



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I retrieve the link state? bb002 Linux - Networking 1 10-31-2005 02:49 AM
undefined refrence return status link error azucarmom Programming 7 03-30-2005 12:15 PM
Network status from within C/C++ tbruer1138 Linux - Software 1 02-27-2005 01:11 AM
network connection status ................ dileepkk Linux - Networking 1 07-09-2004 01:38 PM
D-Link DWL-G520 on Debian - "unable to attach hardware; HAL status 13" dooberwah Linux - Wireless Networking 3 01-25-2004 12:43 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration