A few simple C++ code for server program