To Top
首页 > 常用平台 > 正文

grpc

标签:grpc


目录

https://github.com/grpc/grpc

安装

https://github.com/grpc/grpc/blob/master/INSTALL.md

git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
[sudo] make install

然后

c++ tutorial

快速c++入门

https://github.com/grpc/grpc/tree/master/examples/cpp

先安装protoc

cd third_party/protobuf/
make
make install

然后编译demo

cd examples/cpp/helloworld
make

启动server

./greeter_server
./greeter_async_server # 异步

启动client

greeter_client
greeter_async_client #异步
greeter_async_client2 #异步

进阶

https://github.com/grpc/grpc/blob/master/examples/cpp/cpptutorial.md


原创文章,转载请注明出处!
本文链接:http://daiwk.github.io/posts/platform-grpc.html
上篇: brpc-rdma
下篇: kubernetes-container

comment here..