Chat system using C++