Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
d2931ac5
Unverified
Commit
d2931ac5
authored
May 24, 2018
by
Ge Jun
Committed by
GitHub
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update thrift.md
parent
66f17bca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
thrift.md
docs/cn/thrift.md
+2
-3
No files found.
docs/cn/thrift.md
View file @
d2931ac5
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
-
支持同步、异步、批量同步、批量异步等访问方式,能使用ParallelChannel等组合访问方式.
-
支持同步、异步、批量同步、批量异步等访问方式,能使用ParallelChannel等组合访问方式.
-
支持多种连接方式(连接池, 短连接), 支持超时、backup request、取消、tracing、内置服务等一系列RPC基本福利.
-
支持多种连接方式(连接池, 短连接), 支持超时、backup request、取消、tracing、内置服务等一系列RPC基本福利.
# 编译
依赖及运行
# 编译
为了复用解析代码,brpc对thrift的支持仍需要依赖thrift库以及thrift生成的代码,thrift格式怎么写,代码怎么生成,怎么编译等问题请参考thrift官方文档。
为了复用解析代码,brpc对thrift的支持仍需要依赖thrift库以及thrift生成的代码,thrift格式怎么写,代码怎么生成,怎么编译等问题请参考thrift官方文档。
brpc默认不启用thrift支持也不需要thrift依赖。但如果需用thrift协议, 配置brpc环境的时候需加上--with-thrift参数.
brpc默认不启用thrift支持也不需要thrift依赖。但如果需用thrift协议, 配置brpc环境的时候需加上--with-thrift参数.
...
@@ -56,8 +56,7 @@ if (thrift_channel.Init(Flags_server.c_str(), FLAGS_load_balancer.c_str(), &opti
...
@@ -56,8 +56,7 @@ if (thrift_channel.Init(Flags_server.c_str(), FLAGS_load_balancer.c_str(), &opti
...
...
// wrapper thrift raw request into ThriftMessage
// example::[EchoRequest/EchoResponse]是thrift生成的消息
// example::[EchoRequest/EchoResponse]是thrfit原生定义的消息(通过thrift代码生成工具生成)
brpc
::
ThriftMessage
<
example
::
EchoRequest
>
req
;
brpc
::
ThriftMessage
<
example
::
EchoRequest
>
req
;
brpc
::
ThriftMessage
<
example
::
EchoResponse
>
res
;
brpc
::
ThriftMessage
<
example
::
EchoResponse
>
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment