如何在Python和CPP中运行GRPC客户端?
我正在尝试与client.py,server.cpp和一个make文件一起工作。我不了解如何运行文件并使用这些文件在GRPC上工作。任何人都可以帮助我理解这一概念并与客户,服务器和Protobuf合作吗?
I am trying to work with client.py , server.cpp and a make file. I am not understanding how to run the files and work on grpc with these files. Is it possible for anyone to help me understand this concept and work with the client, server and protobuf?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GRPC的整个想法是在跨平台服务之间启用基于协议的通信。表示您的CPP服务器可以与Python客户端通信。参考:官方grpc文档
.proto
file 这是服务器和客户端之间的协议关于特定RPC方法的请求 /响应应包含在什么属性上。The whole idea of gRPC is to enable protocol based communication between cross platform services. Means your CPP server can communicate with python client. Ref: Official gRPC Documentation
.proto
file which is an agreement between server and client on what attributes should a request / response for a particular RPC method should contain.