当前位置:网站首页>Simple application of thrift
Simple application of thrift
2022-04-21 16:45:00 【zqwlearning】
come from :Linux Basic courses
6. thrift
establish match-server:
cd thrift_lesson/match_system/src
thrift -r --gen cpp ../../thrift/match.thrift
mv gen-cpp match_server
rm match_server/Match_server.skeleton.cpp
establish save-client:
cd thrift_lesson/match_system/src
thrift -r --gen cpp ../../thrift/save.thrift
mv gen-cpp save_client
rm save_client/Save_server.skeleton.cpp
establish main.cpp, The source code in here
compile :
g++ -c main.cpp match_server/*.cpp save_client/*.cpp
link :
g++ *.o -o main -lthrift -pthread
Start the service :
./main
establish match-client:
cd thrift_lesson/game/src
thrift -r --gen py ../../thrift/match.thrift
mv gen-py match_client
establish client.py, The content is here
perform client.py:
python3 client.py
版权声明
本文为[zqwlearning]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211639367483.html
边栏推荐
- 巴比特副总裁马千里:元宇宙时代NPC崛起,数字身份协议或成为入口级产品丨2022元宇宙云峰会
- If this question doesn't work, the interviewer will continue to ask me the JVM: how to judge whether an object is recyclable
- OJ daily practice - number of characters
- 多核和多CPU编程——任务调度
- Sort the exercises after class
- Jianmu continuous integration platform v2 3.0 release
- SQL injection vulnerability exists in a channel of Sogou
- C sliding verification code | puzzle verification | slidecaptcha
- IvorySQL亮相于PostgresConf SV 2022 硅谷Postgres大会
- 直播带货、送外卖、做货运,航空公司靠副业“回血”
猜你喜欢

ES6 how to determine whether an array is repeated

Jianmu continuous integration platform v2 3.0 release

4.25 unlock openharmony technology day! The annual event is about to open!

Yunna: basic functional features of fixed asset management system in asset intensive enterprises

2022 bone conduction earphone ranking, the best bone conduction earphone recommended

数据库原理——图书馆管理系统

Burp is a simple TP5 rce passive scanning plug-in

elmentUI表单中input 和select长度不一致问题

如果这题都不会面试官还会继续问我 JVM 嘛:如何判断对象是否可回收

机器学习吴恩达课程总结(五)
随机推荐
微软IE本地文件探测漏洞
直播带货、送外卖、做货运,航空公司靠副业“回血”
2018-8-10-使用-Resharper-特性
js 毫秒转天时分秒
数据库原理——图书馆管理系统
Program design TIANTI race l3-28 Sensen tourism (even if you think of multiset)
C language - elaborate on functions and structures
2-4. 端口绑定
Are you sure you don't want to see it yet? Managing your code base in this way is both convenient and worry free
下载 Chrome插件 crx的教程
Apache security configuration
机器学习吴恩达课程总结(二)
苹果A13处理器在技术上有哪些创新?
Invalid bound statement (not found)问题解决
Detailed explanation of spark SQL underlying execution process
2022 number two real problem
Netease XSS
Pfsense and snorby
Go language ⌈ concurrent programming ⌋
L2-040 哲哲打游戏 (25 分) 模拟