I've not found any obvious API yet on the Mac, and proc/net/dev doesn't work on the Mac. There are some command-line tools which tell you how many packets have been exchanged on the network. I'll have to see if these tools are open source; if they are, then I can study them to see how it's done.
Does anyone else on this list know how to get network usage on the Mac? Cheers, --Charlie At 3:05 PM -0800 2/19/10, David Anderson wrote: >Linux: it's pretty easy, using /proc/net/dev. I'll do this. >Mac: Charlie, can you see what's available? >Windows: the "Performance Counters" API and/or its documentation > looks pretty horrible. Rom (or someone else), > can you please decipher it at some point? > I need a function that returns total bytes sent/received > on all interfaces. >Rom Walton wrote: >>http://msdn.microsoft.com/en-us/library/aa373083(VS.85).aspx >> >>This is actually the first time I have come across this set of Windows >>APIs. -- Charlie Fenton [email protected] BOINC / s...@home Macintosh & Windows Programmer Space Sciences Laboratory UC Berkeley _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
