game
:实现 match_system 的 client 端
match_system
:实现 match_system 的 server 端和 save_system 的 client 端
thritf
:接口相关的 .thrift
文件
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
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