2019年2月14日

C++使用GRPC

摘要: 0.编写.proto文件: 1.编译.proto文件,生成对应c++源文件: 2.编写 server端代码: 4.编写Client端代码: 5.分别编译、运行Server端、Client端代码。 阅读全文

posted @ 2019-02-14 23:39 areful 阅读(8776) 评论(0) 推荐(0) 编辑

Python下socket通信

摘要: Server端代码: Client端代码: 运行结果如图: 阅读全文

posted @ 2019-02-14 23:30 areful 阅读(560) 评论(0) 推荐(0) 编辑

Python解析JSON格式

摘要: Python解析具有相似JSON格式的字符串方法如下: 阅读全文

posted @ 2019-02-14 23:03 areful 阅读(1130) 评论(0) 推荐(0) 编辑

带TLS认证的Python GRPC调用

摘要: 0.生成CA证书及server、client证书,参见https://github.com/grpc/grpc-java/tree/master/examples: 1.编写proto文件及生成对应python源文件,参考https://www.cnblogs.com/areful/p/103726 阅读全文

posted @ 2019-02-14 06:26 areful 阅读(3513) 评论(31) 推荐(0) 编辑

Python使用GRPC

摘要: 0.安装依赖库 1.编写proto文件 2.编译生成proto对应源文件 3.编写server端代码 4.编写client端代码 5.分别运行server、client代码,运行输出如下: 阅读全文

posted @ 2019-02-14 06:11 areful 阅读(4757) 评论(0) 推荐(0) 编辑

导航