From 255d5413ffdb8aea348b3d143377a51755f6b701 Mon Sep 17 00:00:00 2001 From: Paul Grosu Date: Wed, 7 Dec 2016 01:21:07 -0500 Subject: submit --- chapter/1/figures/hello-world-client.png | Bin 0 -> 30161 bytes chapter/1/figures/hello-world-server.png | Bin 0 -> 13005 bytes chapter/1/gRPC.md | 28 ++++++++++++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 chapter/1/figures/hello-world-client.png create mode 100644 chapter/1/figures/hello-world-server.png (limited to 'chapter') diff --git a/chapter/1/figures/hello-world-client.png b/chapter/1/figures/hello-world-client.png new file mode 100644 index 0000000..c4cf7d4 Binary files /dev/null and b/chapter/1/figures/hello-world-client.png differ diff --git a/chapter/1/figures/hello-world-server.png b/chapter/1/figures/hello-world-server.png new file mode 100644 index 0000000..a51554b Binary files /dev/null and b/chapter/1/figures/hello-world-server.png differ diff --git a/chapter/1/gRPC.md b/chapter/1/gRPC.md index ecdaa73..d39a4f6 100644 --- a/chapter/1/gRPC.md +++ b/chapter/1/gRPC.md @@ -199,14 +199,38 @@ gradlew.bat installDist If you are having issues with Unicode translation of Git on Windows you can try the following commands after entering the `examples` folder: ``` -https://raw.githubusercontent.com/benelot/grpc-java/feb88a96a4bc689631baec11abe989a776230b74/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideServer.java +wget https://raw.githubusercontent.com/benelot/grpc-java/feb88a96a4bc689631baec11abe989a776230b74/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideServer.java copy RouteGuideServer.java src\main\java\io\grpc\examples\routeguide\RouteGuideServer.java ``` -

3 Hello World Demonstration

+

3.5.2 Running the Hello World Demonstration

+Make sure you open two Command (Terminal) windows, each within the `grpc-java\examples\build\install\examples\bin` folder. In the first of the two windows type the following command: +``` +hello-world-server.bat +``` + +You should see the following: + +

+
+ Figure 8: The Hello World gRPC Server. +

+ +In the second of the two windows type the following command: + +``` +hello-world-client.bat +``` + +You should see the following response: + +

+
+ Figure 9: The Hello World gRPC Client and the response from the Server. +

## References -- cgit v1.2.3