34 #ifndef GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
35 #define GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
46 class ChannelArgumentsTest;
123 out.
args = args_.empty() ? NULL :
const_cast<grpc_arg*
>(&args_[0]);
132 struct PointerVtableMembers {
133 static void* Copy(
void* in) {
return in; }
135 static int Compare(
void* a,
void* b) {
136 if (a < b)
return -1;
145 std::vector<grpc_arg> args_;
146 std::list<grpc::string> strings_;
151 #endif // GRPCXX_SUPPORT_CHANNEL_ARGUMENTS_H
void SetMaxReceiveMessageSize(int size)
Sets the max receive and send message sizes.
friend class testing::ChannelArgumentsTest
Definition: channel_arguments.h:129
std::string string
Definition: config.h:50
void SetString(const grpc::string &key, const grpc::string &value)
Set a textual argument value under key.
An array of arguments that can be passed around.
Definition: grpc_types.h:142
Definition: grpc_types.h:100
grpc_arg * args
Definition: grpc_types.h:144
Options for channel creation.
Definition: channel_arguments.h:54
struct grpc_socket_mutator grpc_socket_mutator
The Socket Mutator interface allows changes on socket options.
Definition: grpc_types.h:88
ResourceQuota represents a bound on memory usage by the gRPC library.
Definition: resource_quota.h:48
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:120
void SetMaxSendMessageSize(int size)
friend class SecureChannelCredentials
Definition: channel_arguments.h:128
A single argument...
Definition: grpc_types.h:118
void Swap(ChannelArguments &other)
void SetResourceQuota(const ResourceQuota &resource_quota)
The given buffer pool will be attached to the constructed channel.
void SetCompressionAlgorithm(grpc_compression_algorithm algorithm)
Set the compression algorithm for the channel.
void SetServiceConfigJSON(const grpc::string &service_config_json)
Set service config in JSON form.
void SetPointerWithVtable(const grpc::string &key, void *value, const grpc_arg_pointer_vtable *vtable)
grpc_compression_algorithm
Definition: compression_types.h:72
void SetSslTargetNameOverride(const grpc::string &name)
Set target name override for SSL host name checking.
struct grpc_exec_ctx grpc_exec_ctx
Definition: exec_ctx_fwd.h:39
void SetLoadBalancingPolicyName(const grpc::string &lb_policy_name)
Set LB policy name.
void SetPointer(const grpc::string &key, void *value)
Set a pointer argument value under key. Owership is not transferred.
size_t num_args
Definition: grpc_types.h:143
void SetInt(const grpc::string &key, int value)
Set an integer argument value under key.
ChannelArguments & operator=(ChannelArguments other)
Definition: channel_arguments.h:60
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.
void SetSocketMutator(grpc_socket_mutator *mutator)
Set the socket mutator for the channel.