Skip to content

tongfs/thrift-lesson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thritf Lesson

相关目录

game :实现 match_system 的 client 端

match_system :实现 match_system 的 server 端和 save_system 的 client 端

thritf :接口相关的 .thrift 文件

创建 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

创建 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

编译

g++ -c main.cpp match_server/*.cpp save_client/*.cpp

链接

g++ *.o -o main -lthrift -pthread

启动服务

./main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published