C++ Server Code vs Client Code

It probably is on client as well, but unless you have some serious security issues it shouldn’t be much of problem. The RPC call will always be routed back to the server, and only server implementation will be called in any case.