a chatroom program implemented by linux c