netstat programming with C in AIX 4.3

From: Robin (fly2com@hananet.net)
Date: 04/11/03


From: fly2com@hananet.net (Robin)
Date: 10 Apr 2003 16:52:00 -0700

Hi I'm Robin in South Korea.
Do me a favor please?

I am writing an application that needs some information on established
network connection in the system. (for example. netstat -a | grep
specific port)

I couldn't figure out how to do it under AIX. This information may be
as a
kernel variable, but I couldn't find any information on that.

So, I am asking the AIX gurus how to get data on the established tcp
connections under AIX (4.3). Of course, I can run netstat from within
my program and extract the info I need from the output by
pipe(popen("netstat", "-r")), but there
should be some more elegant way :-).

please, give me a any comment.

Thank you

fly2com@hananet.net



Relevant Pages

  • netstat programming with C in AIX 4.3
    ... network connection in the system. ... netstat -a | grep ... I couldn't figure out how to do it under AIX. ... I can run netstat from within ...
    (comp.unix.aix)
  • Re: interpreting netstat results
    ... with AIX 5.2 then retro-fitted to 5.1 and 4.3.3 in maintenance releases. ... Look at the network options tcp_nodelayack and tcp_finwait2. ... > Subject: interpreting netstat results ... > Active Internet connections ...
    (AIX-L)
  • Re: network bitrate of a poll of processes
    ... a network connection, how can I have something like netstat -w1 ... provide but at the process level? ... If you want real time bitrate, I think you need an external ...
    (freebsd-hackers)
  • Commands for administration AIX
    ... i always used Unix Solaris and never Unix Aix. ... network stat traffic by protocol = netstat -es ... i am looking the equivalent commands that i can use for AIX. ... Can you please help me to creat a list of command for administration AIX servers? ...
    (comp.unix.aix)
  • Re: interpreting netstat results
    ... with AIX 5.2 then retro-fitted to 5.1 and 4.3.3 in maintenance releases. ... > Subject: interpreting netstat results ... > Active Internet connections ...
    (AIX-L)