This is the smallest useful demonstration of protobuf-c's RPC capabilities. I made this project because the only example use of RPC was incredibly convoluted and managed to hide the core logic that was needed to actually use the RPC capabilities. Hopefully this little example will manage to show off some of the incredible RPC capabilities that protobuf-c offers.
You should go and get protobuf-c some how. For OS X users with homebrew, just run:
$ brew install protobuf-c
Alternatively, you can download the latest source code from the downloads page and compile it by hand.
To build both the server and the client, run make in the root folder. It should build the ping.proto file as well as client.c and server.c.
To run the server:
$ make test_server
To run the client:
$ make test_client
The server is a long-running process and will stay up until you kill it.
fuck it.