simple server-client chatroom implementation in C