rpcframe is a simple rpc framework writen in C++11. It support Client side sync/async timeout call and Server side async response. The rpc interface is simple, it send and receive sized char * buffer as raw data.
RpcClient(rpcframe::RpcClientConfig &cfg, const std::string &service_name);
RpcStatus call(const std::string &method_name, const RawData &request_data, RawData &response_data, uint32_t timeout);
RpcStatus async_call(const std::string &method_name, const RawData &request_data, uint32_t timeout, std::shared_ptr<RpcClientCallBack> cb_obj);
rpcframe::RpcStatus method_name(const rpcframe::RawData &req_data, rpcframe::RpcRespBrokerPtr resp_broker);
##HTTP interface:
HTTP GET http://127.0.0.1:8000/[service_name]/[method_name]
curl --data "hello server" http://127.0.0.1:8000/test_service/test_method
A internal server status page:
http://127.0.0.1:8000/status/get_status
Dependence:
Linux kernel > 2.6.30
Gcc > 4.8.2
protobuf-2.6.1
gtest(for unittest)
SCons 2.3.1 / CMake 2.8