19 #ifndef GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_IMPL_H
20 #define GRPCPP_SUPPORT_CHANNEL_ARGUMENTS_IMPL_H
32 class ChannelArgumentsTest;
124 out.
args = args_.empty() ? NULL :
const_cast<grpc_arg*
>(&args_[0]);
133 struct PointerVtableMembers {
134 static void* Copy(
void* in) {
return in; }
135 static void Destroy(
void* ) {}
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_;
Options for channel creation.
Definition: channel_arguments_impl.h:43
void SetSslTargetNameOverride(const grpc::string &name)
Set target name override for SSL host name checking.
Definition: secure_channel_arguments.cc:26
void SetLoadBalancingPolicyName(const grpc::string &lb_policy_name)
Set LB policy name.
Definition: channel_arguments.cc:159
void SetChannelArgs(grpc_channel_args *channel_args) const
Dump arguments in this instance to channel_args.
Definition: channel_arguments.cc:210
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
void SetPointerWithVtable(const grpc::string &key, void *value, const grpc_arg_pointer_vtable *vtable)
Definition: channel_arguments.cc:186
void SetGrpclbFallbackTimeout(int fallback_timeout)
Set the grpclb fallback timeout (in ms) for the channel.
Definition: channel_arguments.cc:87
friend class grpc::testing::ChannelArgumentsTest
Definition: channel_arguments_impl.h:130
void SetSocketMutator(grpc_socket_mutator *mutator)
For client channel's, the socket mutator operates on "channel" sockets.
Definition: channel_arguments.cc:91
~ChannelArguments()
Definition: channel_arguments.cc:68
void SetInt(const grpc::string &key, int value)
Set an integer argument value under key.
Definition: channel_arguments.cc:169
void SetString(const grpc::string &key, const grpc::string &value)
Set a textual argument value under key.
Definition: channel_arguments.cc:198
void SetResourceQuota(const grpc::ResourceQuota &resource_quota)
Set the buffer pool to be attached to the constructed channel.
Definition: channel_arguments.cc:144
void SetUserAgentPrefix(const grpc::string &user_agent_prefix)
Set the string to prepend to the user agent.
Definition: channel_arguments.cc:119
void SetServiceConfigJSON(const grpc::string &service_config_json)
Set service config in JSON form.
Definition: channel_arguments.cc:164
void SetPointer(const grpc::string &key, void *value)
Set a pointer argument value under key. Owership is not transferred.
Definition: channel_arguments.cc:179
void SetMaxReceiveMessageSize(int size)
Set the max receive and send message sizes.
Definition: channel_arguments.cc:151
void SetMaxSendMessageSize(int size)
Definition: channel_arguments.cc:155
void SetCompressionAlgorithm(grpc_compression_algorithm algorithm)
Set the compression algorithm for the channel.
Definition: channel_arguments.cc:82
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments_impl.h:49
void Swap(ChannelArguments &other)
Definition: channel_arguments.cc:77
ChannelArguments()
Definition: channel_arguments.cc:32
ResourceQuota represents a bound on memory and thread usage by the gRPC library.
Definition: resource_quota_impl.h:34
Definition: secure_credentials.h:36
grpc_compression_algorithm
The various compression algorithms supported by gRPC (not sorted by compression level)
Definition: compression_types.h:57
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
::grpc_impl::SecureChannelCredentials SecureChannelCredentials
Definition: credentials.h:30
std::string string
Definition: config.h:35
Definition: grpc_types.h:85
A single argument...
Definition: grpc_types.h:103
An array of arguments that can be passed around.
Definition: grpc_types.h:132
grpc_arg * args
Definition: grpc_types.h:134
size_t num_args
Definition: grpc_types.h:133
The Socket Mutator interface allows changes on socket options.
Definition: socket_mutator.h:40