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
0aa822b2
Commit
0aa822b2
authored
8 years ago
by
Yang Gao
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes
parent
ac4b3a6e
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
doc/command_line_tool.md
+5
-5
5 additions, 5 deletions
doc/command_line_tool.md
with
5 additions
and
5 deletions
doc/command_line_tool.md
+
5
−
5
View file @
0aa822b2
...
...
@@ -8,7 +8,7 @@ tools written in other languages to roughly follow the same syntax and flags.
At this point, the tool needs to be built from source, and it should be moved out to grpc-tools repository as a stand
alone application once it is mature enough.
## Core func
i
tonality
## Core funct
i
onality
The command line tool can do the following things:
...
...
@@ -30,10 +30,10 @@ The command line tool should support the following things:
## Code location
To use the tool, you need to get the grpc repository and in the grpc directory
call
To use the tool, you need to get the grpc repository and in the grpc directory
execute
```
make grpc_cli
$
make grpc_cli
```
The main file can be found at
...
...
@@ -46,7 +46,7 @@ https://github.com/grpc/grpc/blob/master/test/cpp/util/grpc_cli.cc
Send a rpc to a helloworld server at
`localhost:50051`
:
```
bins/opt/grpc_cli call localhost:50051 SayHello examples/protos/helloworld.proto \
$
bins/opt/grpc_cli call localhost:50051 SayHello examples/protos/helloworld.proto \
"name: 'world'" --enable_ssl=false
```
...
...
@@ -71,7 +71,7 @@ For using gRPC with protocols other than probobuf, you will need the exact metho
and a file containing the raw bytes to be sent on the wire
```
bins/opt/grpc_cli call localhost:50051 /helloworld.Greeter/SayHello --input_binary_file=input.bin \
$
bins/opt/grpc_cli call localhost:50051 /helloworld.Greeter/SayHello --input_binary_file=input.bin \
--output_binary_file=output.bin
```
On success, you will need to read or decode the response from the
`output.bin`
file.
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