A C++ multithread network framework