基于grpc底层接口开发的C语言高性能grpc开发框架

GRPC-C

项目地址:http://www.grpc-c.com/

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 项目,该项目代码全部重写,接口保持兼容。并且在性能和可靠性上面更高。

  • 0
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

linimbus

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值