Simple Multiplexed Chat in C