CSSSSApp - Client-Server Simple Socket Statistical Application Documentation
Clients connects with Server via Berkeley's Sockets. Server use "select" to perform well with one thread.
This code is based on "The GNU C Library - Manual" (BTW. it needed some enhancements to work properly ;p). Server prints reports in ALARM_SECONDS interval, using alarm signal and handling SIGALRM.