diff options
author | 2018-03-19 20:37:28 -0700 | |
---|---|---|
committer | 2018-03-26 11:50:10 -0700 | |
commit | 6d855c5f3c7518e2b26a97e464ebb9366da05993 (patch) | |
tree | 8e4957ce849ea4c7c711150510f7fbc7dc7e26b9 /src/objective-c/GRPCClient/GRPCCall+ChannelArg.h | |
parent | bc7e096dd38cd8fca1504986abd2025019004563 (diff) |
Allow gRPC ObjC user to set keepalive options
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall+ChannelArg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h index 18d4597098..0c3f37de81 100644 --- a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h +++ b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h @@ -46,4 +46,11 @@ typedef NS_ENUM(NSInteger, GRPCCompressAlgorithm) { + (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm forhost:(nonnull NSString *)host; +/** Configure keepalive timeout parameters. A client ping after \a interval ms to check if the + * transport is still alive. After waiting for \a timeout ms, if the client does not receive the + * ping ack, it closes the transport. */ ++ (void)setKeepaliveWithInterval:(int)interval + timeout:(int)timeout + forHost:(nonnull NSString *)host; + @end |