dipu-bd / thrift-demo

Demo app connecting java and c++ using Thrift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thrift Demo

Setup

  • Either, install thrift 0.13.0:
# CentOS
$ sudo yum install thrift-devel

# Ubuntu
$ sudo apt-get install libboost-dev libthrift-dev thrift-compiler
  • Or, build thrift 0.13.0:
$ wget -c https://downloads.apache.org/thrift/0.13.0/thrift-0.13.0.tar.gz
$ tar -zxvf thrift-0.13.0.tar.gz
$ cd thrift-0.13.0
$ ./configure
$ make

Build and run

  • Build application
$ ./gradlew clean build
  • Run application
# Run server first
$ ./src/main/dist/exec/server

# Run client later
$ ./gradlew run

About

Demo app connecting java and c++ using Thrift


Languages

Language:C++ 39.5%Language:Java 36.0%Language:Makefile 16.2%Language:Thrift 8.2%