Simple RPC in C++