Network Traffic Tracking

I just downloaded a program called Surplus Meter that helps track how much bandwidth usage on your computer. I've been thinking for a while about trying to make something like this with a few twists and wondered if this forum could point me to what part of the mac framework library I could use to start seeing the bandwidth stats and content?


Thanks for the help, and answering such a newb question.

I just downloaded a program called Surplus Meter that helps track how much bandwidth usage on your computer.

To be clear, you're looking for OS X and not iOS, right?

Most people who ask this are working on iOS, where things are quite a bit trickier.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Most likely application uses "getifaddrs" call ( https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/getifaddrs.3.html )

and read statistics from interface info.

This is typical POSIX - compartible approach, and as far as I know the only legal way to do it on iOS.

Network Traffic Tracking
 
 
Q