A simple function that returns network statistics in C.