milend / macos-network-metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS Network Metrics

Sample code to demonstrate the usage of NET_RT_IFLIST2 on macOS to get network metrics.

To run, execute the following commands:

$ make
$ ./network_metrics

For more details, see macOS Network Metrics Using sysctl().

About


Languages

Language:C 98.1%Language:Makefile 1.9%