This is the demo code to evaluburate about grpc server and client.
To build server use try to execute following command -
./gradlew installDist
It will create a folder install
inside /build
folder of project directory. you will find setup file inside calculator folder as follow below path -
build/install/CalculatorService/bin/calculator-server
Now open terminal and execute calculator-server file on it. It will start server and listening the port 50051 by default.
Just run the app on you device, check the your server address and enter the host detail on host coloumn.
for configuring the go-server follow doc- link to Doc!, for the installation of go-lang follow installation instruction
place go-cal-server
folder to /home/<username>/go/src/google.golang.org/grpc/examples/
folder and run main.go
go run cal_server/main.go
to build again after changes in proto file use below command
protoc -I calculator/ calculator/math.proto --go_out=plugins=grpc:calculator