Merge pull request #20260 from kerbalwzy/master

Fix README: fix the wrong word and delete line number description of the README, which belong to Python example `data_transmission`
pull/20446/head
Lidi Zheng 6 years ago committed by GitHub
commit 6f3dd4efa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      examples/python/data_transmission/README.cn.md
  2. 16
      examples/python/data_transmission/README.en.md

@ -6,31 +6,31 @@
在一次调用中, 客户端只能向服务器传输一次请求数据, 服务器也只能返回一次响应
`client.py - line:14 - simple_method`
`client.py: simple_method`
`server.py - line:17 - SimpleMethod`
`server.py: SimpleMethod`
- #### 客户端流模式
在一次调用中, 客户端可以多次向服务器传输数据, 但是服务器只能返回一次响应
`clien.py - line:27 - client_streaming_method `
`client.py: client_streaming_method `
`server.py - line:28 - ClientStreamingMethod`
`server.py: ClientStreamingMethod`
- #### 服务端流模式
在一次调用中, 客户端只能向服务器传输一次请求数据, 但是服务器可以多次返回响应
`clien.py - line:48 - server_streaming_method`
`client.py: server_streaming_method`
`server.py - line:41 - ServerStreamingMethod`
`server.py: ServerStreamingMethod`
- #### 双向流模式
在一次调用中, 客户端和服务器都可以向对方多次收发数据
`client.py - line:63 - bidirectional_streaming_method`
`client.py: bidirectional_streaming_method`
`server.py - line:59 - BidirectionalStreamingMethod`
`server.py: BidirectionalStreamingMethod`

@ -6,32 +6,32 @@ Four ways of data transmission when gRPC is used in Python. [Offical Guide](<ht
In a single call, the client can only send request once, and the server can only respond once.
`client.py - line:14 - simple_method`
`client.py: simple_method`
`server.py - line:17 - SimpleMethod`
`server.py: SimpleMethod`
- #### stream-unary
In a single call, the client can transfer data to the server an arbitrary number of times, but the server can only return a response once.
`clien.py - line:27 - client_streaming_method`
`client.py: client_streaming_method`
`server.py - line:28 - ClientStreamingMethod`
`server.py: ClientStreamingMethod`
- #### unary-stream
In a single call, the client can only transmit data to the server at one time, but the server can return the response many times.
`clien.py - line:48 - server_streaming_method`
`client.py: server_streaming_method`
`server.py - line:41 - ServerStreamingMethod`
`server.py: ServerStreamingMethod`
- #### stream-stream
In a single call, both client and server can send and receive data
to each other multiple times.
`client.py - line:63 - bidirectional_streaming_method`
`client.py: bidirectional_streaming_method`
`server.py - line:59 - BidirectionalStreamingMethod`
`server.py: BidirectionalStreamingMethod`

Loading…
Cancel
Save