/tinyrpc

A very simple rpc framework for C++

Primary LanguageC++GNU General Public License v3.0GPL-3.0

TinyRPC - a simple rpc framework for C++

Blueprint

  • Construct a simple generic network library
  • Support simple remote procedure call (RPC) as call a local procedure
  • Simple and easy to use and manage
  • Support self-defined IDL
  • Support service register and service dicovery

Example

$ cd example && mkdir build && cd buid
$ cmake ..
$ make

Dependences

Building

$ mkdir build && cd build
$ cmake ..
$ make

After that, there will be a static library named librpcsvr.a and librpccli.a in folder build and you could link yourself server code with it to get an executable file, which is the final rpc server composed of multiple servers and services.

Usage

See also example/rpcsvr