Multithreaded Client / Server in C++