Protocol buffers with c & C ++

Now I have a c / s program with protocol buffers (using C ++). I want to rewrite the server using c. But there are many services in the .proto file. The program implements rpc itself, while buffer buffers-c provides another. I want someone to show me how to implement these examples.

service {
    rpc foo (what) returns(what);
}

How to write this service while the client is in C ++ and the server in c.

+5
source share
1 answer

I doubt that someone will encounter difficulties and provide you with an example that has already been documented (see the "Services" section).

want to know how to implement the client part using C ++.

, (.. ).

; , , .

+3

All Articles