diff options
author | Mark D. Roth <roth@google.com> | 2017-01-19 08:41:15 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-01-19 08:41:15 -0800 |
commit | f0e17783ae74427a7cdb454eefabe02a28376b5f (patch) | |
tree | d5bd49aa70c1bfadbbc47b0e84cd1bd4ffd338c9 /include/grpc++/support | |
parent | 73b20e6f942ebf2a5f4703a82e7a3edd6d01f607 (diff) |
Add ChannelArguments methods for setting max send/recv message size.
Diffstat (limited to 'include/grpc++/support')
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h index d43f7c61bd..efdf7772ad 100644 --- a/include/grpc++/support/channel_arguments.h +++ b/include/grpc++/support/channel_arguments.h @@ -88,6 +88,10 @@ class ChannelArguments { /// The given buffer pool will be attached to the constructed channel void SetResourceQuota(const ResourceQuota& resource_quota); + /// Sets the max receive and send message sizes. + void SetMaxReceiveMessageSize(int size); + void SetMaxSendMessageSize(int size); + /// Set LB policy name. /// Note that if the name resolver returns only balancer addresses, the /// grpclb LB policy will be used, regardless of what is specified here. |