Multi-user chat implemented using C