Trial implementation of a multi-threaded server in C++