// JP opened flex table

Click to See Complete Forum and Search --> : retrieving number of socket being used/open & total bandwidth from my computer??


hanhao
March 8th, 2004, 08:57 AM
how do i retrieve number of socket being used/open & total bandwidth from my computer??
what API to use?

from experience, there are 2 main things from a program that slow a computer's network connection down
- too many sockets used by a program, espically adware
- too much bandwidth hogged by a program, espically adware

correct??

hence i am trying to find these 2 info on the computer and display them out in a nice stats format

Mick
March 8th, 2004, 02:03 PM
use the iphlpapi functions should be: GetTcpTable(...)/GetUdpTable(...)

check msdn.microsoft.com for the documentation.

Mathew Joy
March 8th, 2004, 11:44 PM
For bandwidth GetIfTable(). Then the dwSpeed parameter of the MIB_IFROW struct which is the member of MIB_IFTABLE struct.

//JP added flex table