LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-30-2007, 10:35 AM   #1
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.

Old 12-30-2007, 11:55 AM   #2
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, 11:58 AM   #3
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.

Steve A.


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 09:03 PM
What stores/companies use linux? gendoikari Linux - General 2 02-24-2007 11:47 PM
How can I get info re. current active connections? rickh Linux - Security 4 01-16-2006 08:18 AM
Program no longer stores correct info? twirl Programming 1 10-06-2005 03:38 AM
Do anyone know where Astaro Linux Stores WebAdmin Passwords kareta Linux - General 4 01-18-2004 11:20 AM

All times are GMT -5. The time now is 11:24 AM.

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