diff options
author | 2015-10-30 11:14:09 -0700 | |
---|---|---|
committer | 2016-03-11 11:50:15 -0800 | |
commit | f1d084a4d159eb07536e4b24f2bf65a3771a747c (patch) | |
tree | 87998916c92e306098d6d08f6dad55564a5b492b /src/objective-c/GRPCClient/private/GRPCChannel.h | |
parent | 180ca8635057f2dddeef88d6f4ce5d8f13074b4a (diff) |
Add monitoring of connectivity
Move C-layer call creation into GRPCChannel, so that it always acts on a
non-destroyed channel.
Listen for connectivity in the GRPCCall, and destroy the channel.
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.h')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.h b/src/objective-c/GRPCClient/private/GRPCChannel.h index 8661ae6f97..e49a6aca29 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.h +++ b/src/objective-c/GRPCClient/private/GRPCChannel.h @@ -35,6 +35,7 @@ #include <grpc/grpc.h> +@class GRPCCompletionQueue; struct grpc_channel_credentials; @@ -80,4 +81,6 @@ struct grpc_channel_credentials; + (nonnull GRPCChannel *)insecureChannelWithHost:(nonnull NSString *)host channelArgs:(nullable NSDictionary *)channelArgs; +- (nullable grpc_call *)unmanagedCallWithPath:(nonnull NSString *)path + completionQueue:(nonnull GRPCCompletionQueue *)queue; @end |