Are there any RPC framework implemented with: boost + protobuf? And it has a protobuf plugin can be used to 开发者_开发技巧generate RPC code for the framework.
Or there are some open source implementations I can refer to, please tell me. Thanks.I recently find through a SO question that there is one : RCF (Remote Call Framework)
It seems it can use boost.asio
and protocol buffers
. I have not used it myself.
my2c
That's exactly what one of my colleges had to build in a proprietary project (with a couple of extra cool stuff), so I can share his expert advise.
He believe you're out of luck and won't find that combo online...
However, if you're not in needed of a the specific format used by Protobuffs you can use Thrift.
Thrift is a product of a Facebook employee who once worked in Google, so its very similar to Protobuffs, and the main difference is exactly what you asked for-
Internal implementation using Boost, and a built-in support for RPC transport layers and services.
The only problem is that currently there is no port of Thrift for Windows, but it works great for Linux.
Also you can check Protobuffs' Service option it doesn't give a lot but its a good place to start.
Best of luck!
There's this one. I don't know if it's proper 'proactor' asio.
http://code.google.com/p/server1/
精彩评论