aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-27 21:04:56 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-27 21:04:56 -0700
commit89d56103eb9de65e148f1d839a686e591763d73e (patch)
tree79b02327d46c9e34afcace37c222e07cdbd83cc9 /include/grpc++
parentee8d6a381adf3eaedf0c5d92aca7bd5b4b645de3 (diff)
parent730055d9628ca6d27e46d7c6716148a8d93bf95d (diff)
Merge pull request #3104 from yang-g/create_channel
Create channel API change
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/create_channel.h6
-rw-r--r--include/grpc++/credentials.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/grpc++/create_channel.h b/include/grpc++/create_channel.h
index 0e559ac53e..916f3b0b97 100644
--- a/include/grpc++/create_channel.h
+++ b/include/grpc++/create_channel.h
@@ -44,6 +44,12 @@ namespace grpc {
// If creds does not hold an object or is invalid, a lame channel is returned.
std::shared_ptr<Channel> CreateChannel(
+ const grpc::string& target, const std::shared_ptr<Credentials>& creds);
+
+// For advanced use and testing ONLY. Override default channel arguments only
+// if necessary.
+// If creds does not hold an object or is invalid, a lame channel is returned.
+std::shared_ptr<Channel> CreateCustomChannel(
const grpc::string& target, const std::shared_ptr<Credentials>& creds,
const ChannelArguments& args);
diff --git a/include/grpc++/credentials.h b/include/grpc++/credentials.h
index 71e1f00f15..d623bcef60 100644
--- a/include/grpc++/credentials.h
+++ b/include/grpc++/credentials.h
@@ -57,7 +57,7 @@ class Credentials : public GrpcLibrary {
virtual SecureCredentials* AsSecureCredentials() = 0;
private:
- friend std::shared_ptr<Channel> CreateChannel(
+ friend std::shared_ptr<Channel> CreateCustomChannel(
const grpc::string& target, const std::shared_ptr<Credentials>& creds,
const ChannelArguments& args);