chatroom written in C++, Implementation of