Re: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
Re: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
- Subject: Re: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 16 Feb 2011 17:55:41 +0000
On 16 Feb 2011, at 14:18, mithlesh jha wrote:
> I know the problem statement is really abstract, but would just like to get an idea of which all frameworks, libraries to explore to watch incoming/outgoing network traffic on various ports.
It's probably easiest to do this at the BSD level. You can call <x-man-page://3/getifaddrs> to get a list of interfaces on the system. For AF_LINK interfaces, the ifa_data field of the interface points to a (struct if_data) that contains various interface counters. You can sample those counters every second or so and then work out the short, and then work out various statistics.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden