19 #ifndef GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_H 20 #define GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_H 31 class ChannelArgumentsTest;
71 void SetGrpclbFallbackTimeout(
int fallback_timeout);
77 void SetUserAgentPrefix(
const grpc::string& user_agent_prefix);
83 void SetMaxReceiveMessageSize(
int size);
84 void SetMaxSendMessageSize(
int size);
89 void SetLoadBalancingPolicyName(
const grpc::string& lb_policy_name);
93 void SetServiceConfigJSON(
const grpc::string& service_config_json);
103 void SetPointerWithVtable(
const grpc::string& key,
void* value,
114 out.
args = args_.empty() ? NULL :
const_cast<grpc_arg*
>(&args_[0]);
119 friend class SecureChannelCredentials;
120 friend class testing::ChannelArgumentsTest;
123 struct PointerVtableMembers {
124 static void* Copy(
void* in) {
return in; }
125 static void Destroy(
void* in) {}
126 static int Compare(
void* a,
void* b) {
127 if (a < b)
return -1;
136 std::vector<grpc_arg> args_;
137 std::list<grpc::string> strings_;
142 #endif // GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_H
std::string string
Definition: config.h:35
An array of arguments that can be passed around.
Definition: grpc_types.h:132
Definition: grpc_types.h:85
grpc_arg * args
Definition: grpc_types.h:134
Options for channel creation.
Definition: channel_arguments.h:39
struct grpc_socket_mutator grpc_socket_mutator
The Socket Mutator interface allows changes on socket options.
Definition: grpc_types.h:73
ResourceQuota represents a bound on memory usage by the gRPC library.
Definition: resource_quota.h:34
A single argument...
Definition: grpc_types.h:103
grpc_compression_algorithm
The various compression algorithms supported by gRPC.
Definition: compression_types.h:56
An Alarm posts the user provided tag to its associated completion queue upon expiry or cancellation...
Definition: alarm.h:31
grpc_channel_args c_channel_args() const
Return (by value) a C grpc_channel_args structure which points to arguments owned by this ChannelArgu...
Definition: channel_arguments.h:111
size_t num_args
Definition: grpc_types.h:133
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments.h:45