After looking through the source code, the file `devreader.cpp` references:
* sys/socket.h
* time.h
* net/if.h
* netinet/in.h
* arpa/inet.h
It reads in from /sys/class/net and /proc/net/dev. If you want to find out how this works, you will have to find out how the kernel implements this,