C ++ Google Protocol Buffers. RPC how?

I have already followed three Google RPC tutorials that tried to use 3 different sources. And always the same problem. I can not make it work. I'm very close right now, I'm using protoserv . The problem I'm facing right now is in their textbook, which says:

int main(int argc, char* argv[]) { EchoServiceImpl echo_service; RpcManager rpcman; ... 

I can not find how to access RpcManager and where it is even located. I did grep on protobuf and protoserv dir to no avail. There is only RpcManager in .java packages. Perhaps this is just a version without support, even if it has an example in C ++.

Any help would be greatly appreciated. Even a reference to a stable / simple protobuf C ++ implementation would be great.

+4
source share
1 answer

My answer would be very belated for this question, but it would be useful for understanding / implementing the Protobuf RPC system.

In order to create an HTTP server that handles raw requests and responses, check pbrpc .

How to handle requests and create responses (creating an RPC system), please check libpbrpc .

Each project contains only a few source files; they will not take long to read.

0
source

All Articles