minimalist chat in c++