LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 15
Angry 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.
 
Old 02-15-2005, 08:25 AM   #2
gr33ndata
Member
 
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
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

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

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

.....
 
  


Reply


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


All times are GMT -5. The time now is 09:54 AM.

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