19 #ifndef GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_IMPL_H 20 #define GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_IMPL_H 32 class ChannelArgumentsTest;
75 void SetGrpclbFallbackTimeout(
int fallback_timeout);
87 void SetUserAgentPrefix(
const grpc::string& user_agent_prefix);
93 void SetMaxReceiveMessageSize(
int size);
94 void SetMaxSendMessageSize(
int size);
99 void SetLoadBalancingPolicyName(
const grpc::string& lb_policy_name);
103 void SetServiceConfigJSON(
const grpc::string& service_config_json);
113 void SetPointerWithVtable(
const grpc::string& key,
void* value,
124 out.
args = args_.empty() ? NULL :
const_cast<grpc_arg*
>(&args_[0]);
130 friend class grpc::testing::ChannelArgumentsTest;
133 struct PointerVtableMembers {
134 static void* Copy(
void* in) {
return in; }
135 static void Destroy(
void* in) {}
136 static int Compare(
void* a,
void* b) {
137 if (a < b)
return -1;
146 std::vector<grpc_arg> args_;
147 std::list<grpc::string> strings_;
152 #endif // GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_IMPL_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
::grpc_impl::SecureChannelCredentials SecureChannelCredentials
Definition: credentials.h:30
::grpc_impl::ChannelArguments ChannelArguments
Definition: channel_arguments.h:32
struct grpc_socket_mutator grpc_socket_mutator
The Socket Mutator interface allows changes on socket options.
Definition: grpc_types.h:73
A single argument...
Definition: grpc_types.h:103
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_impl.h:121
grpc_compression_algorithm
The various compression algorithms supported by gRPC (not sorted by compression level) ...
Definition: compression_types.h:57
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments_impl.h:49
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Options for channel creation.
Definition: channel_arguments_impl.h:43
size_t num_args
Definition: grpc_types.h:133
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
ResourceQuota represents a bound on memory and thread usage by the gRPC library.
Definition: resource_quota_impl.h:34