Skip to content

Commit

Permalink
[C++ RPC] fix typo to keep same with source code (apache#6220)
Browse files Browse the repository at this point in the history
Signed-off-by: windclarion <[email protected]>
  • Loading branch information
windclarion authored and Trevor Morris committed Sep 2, 2020
1 parent db26b18 commit 9118573
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/cpp_rpc/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static const string kUsage =
" server - Start the server\n"
"--host - The hostname of the server, Default=0.0.0.0\n"
"--port - The port of the RPC, Default=9090\n"
"--port-end - The end search port of the RPC, Default=9199\n"
"--port-end - The end search port of the RPC, Default=9099\n"
"--tracker - The RPC tracker address in host:port format e.g. 10.1.1.2:9190 Default=\"\"\n"
"--key - The key used to identify the device type in tracker. Default=\"\"\n"
"--custom-addr - Custom IP Address to Report to RPC Tracker. Default=\"\"\n"
Expand All @@ -66,7 +66,7 @@ static const string kUsage =
* \brief RpcServerArgs.
* \arg host The hostname of the server, Default=0.0.0.0
* \arg port The port of the RPC, Default=9090
* \arg port_end The end search port of the RPC, Default=9199
* \arg port_end The end search port of the RPC, Default=9099
* \arg tracker The address of RPC tracker in host:port format e.g. 10.77.1.234:9190 Default=""
* \arg key The key used to identify the device type in tracker. Default=""
* \arg custom_addr Custom IP Address to Report to RPC Tracker. Default=""
Expand Down
4 changes: 2 additions & 2 deletions apps/cpp_rpc/rpc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static std::string getNextString(std::stringstream* iss) {
* \brief RPCServer RPC Server class.
* \param host The hostname of the server, Default=0.0.0.0
* \param port The port of the RPC, Default=9090
* \param port_end The end search port of the RPC, Default=9199
* \param port_end The end search port of the RPC, Default=9099
* \param tracker The address of RPC tracker in host:port format e.g. 10.77.1.234:9190 Default=""
* \param key The key used to identify the device type in tracker. Default=""
* \param custom_addr Custom IP Address to Report to RPC Tracker. Default=""
Expand Down Expand Up @@ -362,7 +362,7 @@ void ServerLoopFromChild(SOCKET socket) {
* \brief RPCServerCreate Creates the RPC Server.
* \param host The hostname of the server, Default=0.0.0.0
* \param port The port of the RPC, Default=9090
* \param port_end The end search port of the RPC, Default=9199
* \param port_end The end search port of the RPC, Default=9099
* \param tracker_addr The address of RPC tracker in host:port format e.g. 10.77.1.234:9190
* Default="" \param key The key used to identify the device type in tracker. Default="" \param
* custom_addr Custom IP Address to Report to RPC Tracker. Default="" \param silent Whether run in
Expand Down
2 changes: 1 addition & 1 deletion apps/cpp_rpc/rpc_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void ServerLoopFromChild(SOCKET socket);
* \brief RPCServerCreate Creates the RPC Server.
* \param host The hostname of the server, Default=0.0.0.0
* \param port The port of the RPC, Default=9090
* \param port_end The end search port of the RPC, Default=9199
* \param port_end The end search port of the RPC, Default=9099
* \param tracker The address of RPC tracker in host:port format e.g. 10.77.1.234:9190 Default=""
* \param key The key used to identify the device type in tracker. Default=""
* \param custom_addr Custom IP Address to Report to RPC Tracker. Default=""
Expand Down

0 comments on commit 9118573

Please sign in to comment.