net server and client design to transfer data with "protobuf" between java and c++