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
dee8e677
Commit
dee8e677
authored
May 14, 2018
by
wangxuefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typo
parent
4803a683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
thrift.md
docs/cn/thrift.md
+3
-1
No files found.
docs/cn/thrift.md
View file @
dee8e677
[
English Version
](
../en/thrift.md
)
[
thrift
](
https://thrift.apache.org/
)
是近几年应用较广的Facebook发布的RPC服务, 为了使用户更方便,快捷的利用bthread的并发能力,brpc实现并支持thrift工作在NonBlocking模式下的协议(FramedProtocol), 注意本文中所说的thrift协议一律指的是此种情况下的thrift协议.
示例程序:
[
example/thrift_extension_c++
](
https://github.com/brpc/brpc/tree/master/example/thrift_extension_c++/
)
...
...
@@ -23,7 +25,7 @@ sudo make install
```
bash
sh config_brpc.sh
--headers
=
/usr/include
--libs
=
/usr/lib
--nodebugsymbols
--with-thrift
```
编译完成后会生成libbrpc.a 和libbrpc_thrift.a, thrift扩展协议
支持
以静态库的方式提供给用户, 用户在需要启用thrift协议的时候链接即可
编译完成后会生成libbrpc.a 和libbrpc_thrift.a, thrift扩展协议以静态库的方式提供给用户, 用户在需要启用thrift协议的时候链接即可
# Thrift 原生消息定义, echo.thrift:
```
c++
...
...
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