saetji
Aug 12 2005, 08:18 PM
I'm trying to code a program to enumerate ports in use and map them to the parent application - like fport, open ports & active ports does, but couldn't figure out how to do it.
I tried checking use connect() if the port was busy but that gave me false readings (the port was in use by a program but my program showed it as being free :/)
Any help or example codes would be very useful
SAET
usch
Aug 12 2005, 10:36 PM
vnet576
Aug 12 2005, 10:38 PM
http://www.sysinternals.com/Files/NetstatpSource.zipThis code maps port to process. Written in plain C and very well commented.