grpc Unary模式下客户端创建insecure channel的主要流程
(原创)C/C语言, 平台是debian10, grpc版本:grpc-c/1.25.0-dev grpc-c/8.0.0, 使用的例子是自带的例子GreeterClient
grpc Unary模式下客户端创建insecure channel的主要流程
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)
最新文章
- Java编程中-servlet
- 用android去写一个小程序
- scott/tiger登录时提醒ora-28000 the account is locked
- linux下svn常用命令
- PDO vs. MySQLi 选择哪一个?(PDO vs. MySQLi: Which Should You Use?)-转载
- 解析Myeclipse项目下的.classpath文件
- 30天,O2O速成攻略【8.16武汉站】
- DevExpress中使用DocumentManager,并确保不重复
- VS设置背景色减缓眼睛疲劳
- (转)8 reviews about de novo genome assembly
- Redis客户端Java服务接口封装
- Linq查询Count、Sum、Min、Max、Average
- 打造坚固的安全的Linux服务器(ssh登录篇)
- mp3播放器
- eclipse关联源码的方法
- Eclipse+Spring+SpringMVC+Maven+Mybatis+MySQL+Tomcat项目搭建
- jq.paginator分页插件稍加修改
- 利用gradle添加构建版本号
- densenet 中的shortcut connection
- Leaf——美团点评分布式ID生成系统 UUID &; 类snowflake