aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/create_channel.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-08-27 21:11:54 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-08-27 21:11:54 -0700
commite535aacfac6d808c840e7966bcb6a4658f96fbb9 (patch)
tree87d276fb8f43c3ad8c6cffef8cfdf8e051c7a63a /src/cpp/client/create_channel.cc
parent240b7db1ca666a01f359fa1509be9c495b728827 (diff)
parent2d487f2950367840402e8a40f314994dd695cc02 (diff)
Merge github.com:grpc/grpc into reject-the-stuffs
Diffstat (limited to 'src/cpp/client/create_channel.cc')
-rw-r--r--src/cpp/client/create_channel.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpp/client/create_channel.cc b/src/cpp/client/create_channel.cc
index 8c571cbbaa..1dac960017 100644
--- a/src/cpp/client/create_channel.cc
+++ b/src/cpp/client/create_channel.cc
@@ -44,6 +44,11 @@ namespace grpc {
class ChannelArguments;
std::shared_ptr<Channel> CreateChannel(
+ const grpc::string& target, const std::shared_ptr<Credentials>& creds) {
+ return CreateCustomChannel(target, creds, ChannelArguments());
+}
+
+std::shared_ptr<Channel> CreateCustomChannel(
const grpc::string& target, const std::shared_ptr<Credentials>& creds,
const ChannelArguments& args) {
ChannelArguments cp_args = args;
@@ -57,4 +62,5 @@ std::shared_ptr<Channel> CreateChannel(
NULL, GRPC_STATUS_INVALID_ARGUMENT,
"Invalid credentials."));
}
+
} // namespace grpc