Skip to content

Commit

Permalink
Add mutual links to cn/en in client.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesge committed Sep 28, 2017
1 parent 6c5dbe9 commit d098ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/cn/client.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[English version](../en/client.md)

# 示例程序

Echo的[client端代码](https://github.com/brpc/brpc/blob/master/example/echo_c++/client.cpp)
Expand Down
4 changes: 3 additions & 1 deletion docs/en/client.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[中文版](../cn/client.md)

# Example

[client-side code](https://github.com/brpc/brpc/blob/master/example/echo_c++/client.cpp) of echo.
Expand All @@ -11,7 +13,7 @@
- No class named brpc::Client.

# Channel
Client-side sends requests. It's called [Channel](https://github.com/brpc/brpc/blob/master/src/brpc/channel.h) rather than "Client" in brpc. A channel represents a communication line to one server or multiple servers, which can be used for calling services.
Client-side of RPC sends requests. It's called [Channel](https://github.com/brpc/brpc/blob/master/src/brpc/channel.h) rather than "Client" in brpc. A channel represents a communication line to one server or multiple servers, which can be used for calling services.

A Channel can be **shared by all threads** in the process. Yon don't need to create separate Channels for each thread, and you don't need to synchronize Channel.CallMethod with lock. However creation and destroying of Channel is **not** thread-safe, make sure the channel is initialized and destroyed only by one thread.

Expand Down

0 comments on commit d098ad7

Please sign in to comment.