34 #ifndef GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
35 #define GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
40 #include <grpc/compression.h>
41 #include <grpc/grpc.h>
46 class ChannelArgumentsTest;
99 struct PointerVtableMembers {
100 static void* Copy(
void* in) {
return in; }
101 static void Destroy(
void* in) {}
102 static int Compare(
void* a,
void* b) {
103 if (a < b)
return -1;
112 std::vector<grpc_arg> args_;
113 std::list<grpc::string> strings_;
118 #endif // GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
friend class testing::ChannelArgumentsTest
Definition: channel_arguments.h:96
std::string string
Definition: config.h:112
void SetString(const grpc::string &key, const grpc::string &value)
Set a textual argument value under key.
Options for channel creation.
Definition: channel_arguments.h:52
friend class SecureChannelCredentials
Definition: channel_arguments.h:95
void Swap(ChannelArguments &other)
void SetCompressionAlgorithm(grpc_compression_algorithm algorithm)
Set the compression algorithm for the channel.
void SetSslTargetNameOverride(const grpc::string &name)
Set target name override for SSL host name checking.
void SetPointer(const grpc::string &key, void *value)
Set a pointer argument value under key. Owership is not transferred.
~ChannelArguments()
Definition: channel_arguments.h:55
void SetInt(const grpc::string &key, int value)
Set an integer argument value under key.
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments.h:58
void SetUserAgentPrefix(const grpc::string &user_agent_prefix)
The given string will be sent at the front of the user agent string.
void SetChannelArgs(grpc_channel_args *channel_args) const
Dump arguments in this instance to channel_args.