GRPC-C
C implementation of gRPC layered of top of core libgrpc.
Prerequisites
Make sure you have the following install in order to install dependencies. Base on ubuntu 18.04 and x86_64.
apt install -y autoconf automake libtool curl make cmake g++ unzip zlib1g-dev \
zlib1g openssl libssl-dev pkg-config libgflags-dev libgtest-dev
Build
git clone https://github.com/lixiangyun/grpc-c.git
cd grpc-c
./builddeps.sh
./buildlib.sh
./buildcmp.sh
If you want to install dependencies in a different directory other than /usr/local/, use ./builddeps.sh
Examples
cd examples
./build.sh
To run example code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
cd examples
./bin/foo_bin server
./bin/foo_bin client
Dependencies
- gRPC v1.17.2
- protobuf 3.6.1.3
- protobuf-c 1.3.1
- c-ares 1.15.0
相比:http://www.github.com/Juniper/grpc-c 项目,该项目代码全部重写,接口保持兼容。并且在性能和可靠性上面更高。