A networking simulation in C