c++ server model