base server c++ style