|
|
@ -43,7 +43,12 @@ |
|
|
|
namespace grpc { |
|
|
|
namespace grpc { |
|
|
|
class ChannelArguments; |
|
|
|
class ChannelArguments; |
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<Channel> CreateChannel( |
|
|
|
std::shared_ptr<Channel> CreateCustomChannel( |
|
|
|
|
|
|
|
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 grpc::string& target, const std::shared_ptr<Credentials>& creds, |
|
|
|
const ChannelArguments& args) { |
|
|
|
const ChannelArguments& args) { |
|
|
|
ChannelArguments cp_args = args; |
|
|
|
ChannelArguments cp_args = args; |
|
|
@ -57,4 +62,5 @@ std::shared_ptr<Channel> CreateChannel( |
|
|
|
NULL, GRPC_STATUS_INVALID_ARGUMENT, |
|
|
|
NULL, GRPC_STATUS_INVALID_ARGUMENT, |
|
|
|
"Invalid credentials.")); |
|
|
|
"Invalid credentials.")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace grpc
|
|
|
|
} // namespace grpc
|
|
|
|