You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -436,8 +437,8 @@ As you can see, a gRPC method can accept only a single protocol buffer message t
436
437
Once we've defined our service, we use the protocol buffer compiler
437
438
`protoc` to generate the special client and server code we need to create
438
439
our application - you
439
-
can generate gRPC code in any gRPC-supported language, although PHP and Objective-C only support creating clients. The generated code contains both stub code for clients to
440
-
use and an abstract interface for servers to implement, both with the method
440
+
can generate gRPC code in any gRPC-supported language, although PHP and Objective-C only support creating clients. The generated code contains both client-side code for clients to
441
+
call into and an abstract interface for servers to implement, both with the method
441
442
defined in our `Greeter` service.
442
443
443
444
(If you didn't install the gRPC plugins and protoc on your system and are just reading along with
@@ -577,9 +578,8 @@ To generate the code, run the following command from the `examples/csharp/hellow
577
578
578
579
Running the appropriate command for your OS regenerates the following files in the Greeter directory:
579
580
580
-
-`Greeter/Helloworld.cs` defines a namespace `Helloworld`
581
-
- This contains all the protocol buffer code to populate, serialize, and retrieve our request and response message types
582
-
-`Greeter/HelloworldGrpc.cs`, provides stub and service classes, including:
581
+
-`Greeter/Helloworld.cs` contains all the protocol buffer code to populate, serialize, and retrieve our request and response message types
582
+
-`Greeter/HelloworldGrpc.cs` provides generated client and server classes, including:
583
583
- an abstract base class `Greeter.GreeterBase` to inherit from when defining RouteGuide service implementations
584
584
- a class `Greeter.GreeterClient` that can be used to access remote RouteGuide instances
585
585
@@ -947,7 +947,7 @@ we'll leave that for the tutorial.
947
947
948
948
First let's look at how we connect to the `Greeter` server. First we need
949
949
to create a gRPC channel, specifying the hostname and port of the server we
950
-
want to connect to. Then we use the channel to construct the stub instance.
950
+
want to connect to. Then we use the channel to construct the client stub instance.
951
951
952
952
953
953
<divclass="tabs">
@@ -1077,7 +1077,7 @@ In PHP, we can do this in a single step using the `GreeterClient` class's constr
1077
1077
Now we can contact the service and obtain a greeting:
1078
1078
1079
1079
1. We construct and fill in a `HelloRequest` to send to the service.
1080
-
2. We call the stub's `SayHello()` RPC with our request and get a populated `HelloReply` if the RPC is successful, from which we can get our greeting.
1080
+
2. We call the client stub's `SayHello()` RPC with our request and get a populated `HelloReply` if the RPC is successful, from which we can get our greeting.
0 commit comments