Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
2fdb9638
Commit
2fdb9638
authored
10 years ago
by
Lisa Carey
Browse files
Options
Downloads
Patches
Plain Diff
Style tweaks
parent
8e9a709d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-3
4 additions, 3 deletions
README.md
with
4 additions
and
3 deletions
README.md
+
4
−
3
View file @
2fdb9638
...
@@ -264,11 +264,12 @@ As you can see, the class `GreetingsImpl` implements the interface
...
@@ -264,11 +264,12 @@ As you can see, the class `GreetingsImpl` implements the interface
-`Helloworld.HelloRequest`: the request
-`Helloworld.HelloRequest`: the request
-`StreamObserver<Helloworld.HelloReply>`: a response observer, which is
-`StreamObserver<Helloworld.HelloReply>`: a response observer, which is
a special interface for the server to call with its response
a special interface for the server to call with its response
To return our response to the client and complete the call:
To return our response to the client and complete the call:
1. We construct and populate a `HelloReply` response object with our exciting
1. We construct and populate a `HelloReply` response object with our exciting
message, as specified in our interface definition.
message, as specified in our interface definition.
2. We call `responseObserver.onValue()` with the `HelloReply` that we want to send back to the client.
2. We call `responseObserver.onValue()` with the `HelloReply` that we want to send back to the client.
3. Finally, we call `responseObserver.onCompleted()` to indicate that we're
3. Finally, we call `responseObserver.onCompleted()` to indicate that we're
finished dealing with this RPC.
finished dealing with this RPC.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment