19 #ifndef GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_H 20 #define GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_H 31 class ChannelArgumentsTest;
71 void SetGrpclbFallbackTimeout(
int fallback_timeout);
83 void SetUserAgentPrefix(
const grpc::string& user_agent_prefix);
89 void SetMaxReceiveMessageSize(
int size);
90 void SetMaxSendMessageSize(
int size);
95 void SetLoadBalancingPolicyName(
const grpc::string& lb_policy_name);
99 void SetServiceConfigJSON(
const grpc::string& service_config_json);
109 void SetPointerWithVtable(
const grpc::string& key,
void* value,
120 out.
args = args_.empty() ? NULL :
const_cast<grpc_arg*
>(&args_[0]);
125 friend class SecureChannelCredentials;
126 friend class testing::ChannelArgumentsTest;
129 struct PointerVtableMembers {
130 static void* Copy(
void* in) {
return in; }
131 static void Destroy(
void* in) {}
132 static int Compare(
void* a,
void* b) {
133 if (a < b)
return -1;
142 std::vector<grpc_arg> args_;
143 std::list<grpc::string> strings_;
148 #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:117
size_t num_args
Definition: grpc_types.h:133
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments.h:45