On 2/19/10, David Anderson <[email protected]> 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.
Even if there will only be one implementation active at a time (selected at compile time), I suggest structuring it as an abstract class to get network activity, with subclasses for each OS implementation. Among other things, you will be able to easily write a fourth implementation that fakes its results, for testing. -- Nicolas _______________________________________________ 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.
