LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-30-2007, 11:35 AM   #1
dare00
LQ Newbie
 
Registered: Dec 2007
Posts: 3

Rep: Reputation: 0
Where linux stores info about connections?


I'm writing a litle program that displays established connections. Currently i'm getting info from netstat or lsof, but it takes to long when there are many connections and the prog freezes.

Does anybody know where linux stores information about connections? I've been searching but nothing yet.

cya
 
Old 12-30-2007, 12:55 PM   #2
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
why not just use ifconfig?
 
Old 12-30-2007, 12:58 PM   #3
shiloh
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Cool network connections

You could try adding a -n to your netstat arguments, so DNS lookups are not performed. Usually, a netstat operation takes a long time when there are many connections that do not resolve.

If you are interested, I wrote a gnome applet that displays network connections and other network related information. The source, a binary compiled on my system, instructions to compile your own binary, necessary files, and instructions on installing the applet is available in my download at the sourceforge project page.

https://sourceforge.net/projects/gtkapplet/

Steve A.
 
  


Reply

Tags
applet, gnome, netstat


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which online music stores are Linux-friendly? newbiesforever Linux - General 11 12-23-2007 10:03 PM
What stores/companies use linux? gendoikari Linux - General 2 02-25-2007 12:47 AM
How can I get info re. current active connections? rickh Linux - Security 4 01-16-2006 09:18 AM
Program no longer stores correct info? twirl Programming 1 10-06-2005 04:38 AM
Do anyone know where Astaro Linux Stores WebAdmin Passwords kareta Linux - General 4 01-18-2004 12:20 PM


All times are GMT -5. The time now is 07:45 PM.

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