• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to capture download/upload speed on Ethernet, Airport, Firewire ports? (From: mithlesh jha <email@hidden>)

  • Prev by Date: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
  • Next by Date: Connect iPad to Servlets on a Tomcat Web Server
  • Previous by thread: How to capture download/upload speed on Ethernet, Airport, Firewire ports?
  • Next by thread: Connect iPad to Servlets on a Tomcat Web Server
  • Index(es):
    • Date
    • Thread