diff options
author | yang-g <yangg@google.com> | 2015-08-28 14:24:44 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-28 14:24:44 -0700 |
commit | 92806a51ba419428c0e4a126e916860b0225c492 (patch) | |
tree | ec2bf54c316470db22dffea3d6a7c725e51cc0a1 /examples/cpp | |
parent | b00a3f689fef00f029589f52b3dda2272deb7914 (diff) |
remove ChannelArguments ref and update doc
Diffstat (limited to 'examples/cpp')
-rw-r--r-- | examples/cpp/cpptutorial.md | 4 | ||||
-rw-r--r-- | examples/cpp/helloworld/README.md | 2 | ||||
-rw-r--r-- | examples/cpp/helloworld/greeter_async_client.cc | 1 | ||||
-rw-r--r-- | examples/cpp/helloworld/greeter_client.cc | 1 | ||||
-rw-r--r-- | examples/cpp/route_guide/route_guide_client.cc | 1 |
5 files changed, 3 insertions, 6 deletions
diff --git a/examples/cpp/cpptutorial.md b/examples/cpp/cpptutorial.md index a23633d83c..c06233aa6b 100644 --- a/examples/cpp/cpptutorial.md +++ b/examples/cpp/cpptutorial.md @@ -242,10 +242,10 @@ In this section, we'll look at creating a C++ client for our `RouteGuide` servic To call service methods, we first need to create a *stub*. -First we need to create a gRPC *channel* for our stub, specifying the server address and port we want to connect to and any special channel arguments - in our case we'll use the default `ChannelArguments` and no SSL: +First we need to create a gRPC *channel* for our stub, specifying the server address and port we want to connect to without SSL: ```cpp -grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials(), ChannelArguments()); +grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials()); ``` Now we can use the channel to create our stub using the `NewStub` method provided in the `RouteGuide` class we generated from our .proto. diff --git a/examples/cpp/helloworld/README.md b/examples/cpp/helloworld/README.md index ac833e98eb..b16c084583 100644 --- a/examples/cpp/helloworld/README.md +++ b/examples/cpp/helloworld/README.md @@ -94,7 +94,7 @@ $ protoc -I ../../protos/ --cpp_out=. ../../protos/helloworld.proto arguments as follows ``` - auto channel = CreateChannel("localhost:50051", InsecureCredentials(), ChannelArguments()); + auto channel = CreateChannel("localhost:50051", InsecureCredentials()); ``` - Create a stub. A stub implements the rpc methods of a service and in the diff --git a/examples/cpp/helloworld/greeter_async_client.cc b/examples/cpp/helloworld/greeter_async_client.cc index bc95c54e06..875599e161 100644 --- a/examples/cpp/helloworld/greeter_async_client.cc +++ b/examples/cpp/helloworld/greeter_async_client.cc @@ -45,7 +45,6 @@ #include "helloworld.grpc.pb.h" using grpc::Channel; -using grpc::ChannelArguments; using grpc::ClientAsyncResponseReader; using grpc::ClientContext; using grpc::CompletionQueue; diff --git a/examples/cpp/helloworld/greeter_client.cc b/examples/cpp/helloworld/greeter_client.cc index 2b542cd834..3d2fcba610 100644 --- a/examples/cpp/helloworld/greeter_client.cc +++ b/examples/cpp/helloworld/greeter_client.cc @@ -43,7 +43,6 @@ #include "helloworld.grpc.pb.h" using grpc::Channel; -using grpc::ChannelArguments; using grpc::ClientContext; using grpc::Status; using helloworld::HelloRequest; diff --git a/examples/cpp/route_guide/route_guide_client.cc b/examples/cpp/route_guide/route_guide_client.cc index fe998079c4..ec0a75e039 100644 --- a/examples/cpp/route_guide/route_guide_client.cc +++ b/examples/cpp/route_guide/route_guide_client.cc @@ -47,7 +47,6 @@ #include "route_guide.grpc.pb.h" using grpc::Channel; -using grpc::ChannelArguments; using grpc::ClientContext; using grpc::ClientReader; using grpc::ClientReaderWriter; |