(原创)C/C语言, 平台是debian10, grpc版本:grpc-c/1.25.0-dev grpc-c/8.0.0, 使用的例子是自带的例子GreeterClient

grpc Unary模式下客户端创建insecure channel的主要流程

graph TD;
001(main #greeter_client.cc:81 入口调用grpc::CreateChannel)-->002(grpc::CreateChannel #create_channel.h:30 调用::grpc_impl::CreateChannelImpl)

002-->003(grpc_impl::CreateChannelImpl #create_channel.cc:33 调用CreateCustomChannelImpl)

003-->004(grpc_impl::CreateCustomChannelImpl #create_channel.cc:50 初始化GrpcLibraryCodegen并最终调用grpc_init初始化核心模块, 再调用CreateChannelImpl)

004-->005(grpc_impl::InsecureChannelCredentialsImpl::CreateChannelImpl #insecure_credentials.cc:37 调用CreateChannelWithInterceptors)

005-->006(grpc_impl::InsecureChannelCredentialsImpl::CreateChannelWithInterceptors insecure_credentials.cc:50 调用grpc_insecure_channel_create)

006-->007(grpc_insecure_channel_create #channel_create.cc:104 增加了grpc.client_channel_factory参数并调用CreateChannel)

007-->008(grpc_core::CreateChannel #channel_create.cc:67 增加了grpc.server_uri参数并调用grpc_channel_create)

008-->009(grpc_channel_create #channel.cc:286 调用grpc_init, 此处不会执行初始化,因为前面已经初始化了,创建并设置grpc_channel_stack_builder参数,创建ChannelzNode,最后调用 grpc_channel_create_with_builder)

009-->010(grpc_channel_create_with_builder #channel.cc:79 调用grpc_channel_stack_builder_finish完成channel创建并设置channel的变量)

010-->011(grpc_channel_stack_builder_finish #channel_stack_builder.cc:297 创建并初始化channel对应的grpc_channel_stack)

最新文章

  1. Java编程中-servlet
  2. 用android去写一个小程序
  3. scott/tiger登录时提醒ora-28000 the account is locked
  4. linux下svn常用命令
  5. PDO vs. MySQLi 选择哪一个?(PDO vs. MySQLi: Which Should You Use?)-转载
  6. 解析Myeclipse项目下的.classpath文件
  7. 30天,O2O速成攻略【8.16武汉站】
  8. DevExpress中使用DocumentManager,并确保不重复
  9. VS设置背景色减缓眼睛疲劳
  10. (转)8 reviews about de novo genome assembly
  11. Redis客户端Java服务接口封装
  12. Linq查询Count、Sum、Min、Max、Average
  13. 打造坚固的安全的Linux服务器(ssh登录篇)
  14. mp3播放器
  15. eclipse关联源码的方法
  16. Eclipse+Spring+SpringMVC+Maven+Mybatis+MySQL+Tomcat项目搭建
  17. jq.paginator分页插件稍加修改
  18. 利用gradle添加构建版本号
  19. densenet 中的shortcut connection
  20. Leaf——美团点评分布式ID生成系统 UUID & 类snowflake

热门文章

  1. luogu_1155: 双栈排序
  2. 数组排序代码,冒泡排序&快速排序&选择排序
  3. JavaScript兼容性问题 js兼容
  4. C++中vector的使用总结
  5. js字符串连接
  6. mybatis 根据多个id查询数据 foreach标签
  7. 【Gamma】 Scrum Meeting 1
  8. DNS技术和NAT技术详解
  9. noscript 标签介绍
  10. Db2 Terminate Vs Connect Reset , Disconnect