diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-02-17 18:23:58 -0800 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-02-17 18:23:58 -0800 |
commit | 5e0efd95f785bc3a82fa2b7b67b2442625653efa (patch) | |
tree | 479cf5b81282a4f7df98664fd85ddf1b4139d5e6 /src/objective-c/GRPCClient/private/GRPCChannel.h | |
parent | 30697c9be2ff01e9f33e0934b58877fc3d11f516 (diff) |
Imports code of the generic gRPC client library.
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.h')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.h b/src/objective-c/GRPCClient/private/GRPCChannel.h new file mode 100644 index 0000000000..8772acc12f --- /dev/null +++ b/src/objective-c/GRPCClient/private/GRPCChannel.h @@ -0,0 +1,17 @@ +#import <Foundation/Foundation.h> + +struct grpc_channel; + +// Each separate instance of this class represents at least one TCP +// connection to the provided host. To create a grpc_call, pass the +// value of the unmanagedChannel property to grpc_channel_create_call. +// Release this object when the call is finished. +@interface GRPCChannel : NSObject +@property(nonatomic, readonly) struct grpc_channel *unmanagedChannel; + +// Convenience constructor to allow for reuse of connections. ++ (instancetype)channelToHost:(NSString *)host; + +// Designated initializer +- (instancetype)initWithHost:(NSString *)host; +@end |