![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
【011】Rpc
Rpc
MeepoB
小菜鸟
展开
-
gRPC HelloWorld GreeterClient
GreeterClientGreeterClient greeter(grpc::CreateChannel(target_str, grpc::InsecureChannelCredentials()));target_str :目标 ip 和 端口 target_str = "localhost:50051";grpc::InsecureChannelCredentials: GrpcLibraryCodegen 需要 grpc 服务的都需要继承这个类,构造函数里对...原创 2020-12-27 21:57:48 · 708 阅读 · 0 评论 -
ubuntu gRPC 安装 | zip包
https://github.com/grpc/grpc/blob/master/BUILDING.md 官方教程https://github.com/grpc/grpc/releases/tag/v1.34.0 release 版本cmake 需要1.10版本以上RELEASE_TAG_HERE 为你需要的release 版本,我这里用的是 v1.34.0由于项目比较大, 下载速度比较慢, 还经常失败,我选择下载 zip, 然后传到我的云服务器上git submod...原创 2020-12-16 22:50:43 · 647 阅读 · 0 评论