QuangVuong85 / thrift.tutorial

Apache Thrift C++ Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apache Thrift

Apache Thrift C++ Example

Install

  • Apache Thrift version 0.13.0
sudo apt-get install ant
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-filesystem-dev libboost-thread-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
http://thrift.apache.org/download
tar -xvf thrift-0.13.0.tar.gz
./bootstrap.sh
./configure
sudo make
sudo make check
sudo make install
thrift -version

Build

  • Gen thrift in C++:
./gen.sh
  • Server:
cd server
./build.sh
  • Client:
cd client
./build.sh

Result

About

Apache Thrift C++ Example


Languages

Language:C++ 76.9%Language:Thrift 9.7%Language:CMake 7.8%Language:Shell 5.6%