Example:
auto counters = netIoCounters();
foreach (iface, counter; counters) {
writeln(iface, ": sent ", counter.bytesSent, " bytes");
}Gets network I/O counters.
pernic | If true, returns counters per interface. If false, returns totals. |
Example:
auto counters = netIoCounters();
foreach (iface, counter; counters) {
writeln(iface, ": sent ", counter.bytesSent, " bytes");
}