diff options
author | Craig Tiller <ctiller@google.com> | 2015-02-09 09:51:00 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-09 09:51:00 -0800 |
commit | c4965751a05bd9bf8e309275964623ced7583f1b (patch) | |
tree | 10183cc1b9d79477fc46f884aa3b9e82c1e9da23 /src/cpp/client/channel.h | |
parent | 2ca4708921ba5bd7b2402c5661924cb05350078d (diff) |
Starting to scratch out the API
Diffstat (limited to 'src/cpp/client/channel.h')
-rw-r--r-- | src/cpp/client/channel.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/cpp/client/channel.h b/src/cpp/client/channel.h index 67d18bf4c8..84014b3cea 100644 --- a/src/cpp/client/channel.h +++ b/src/cpp/client/channel.h @@ -43,10 +43,11 @@ struct grpc_channel; namespace grpc { class ChannelArguments; +class CompletionQueue; class Credentials; class StreamContextInterface; -class Channel : public ChannelInterface { +class Channel final : public ChannelInterface { public: Channel(const grpc::string &target, const ChannelArguments &args); Channel(const grpc::string &target, const std::unique_ptr<Credentials> &creds, @@ -54,14 +55,8 @@ class Channel : public ChannelInterface { ~Channel() override; - Status StartBlockingRpc(const RpcMethod &method, ClientContext *context, - const google::protobuf::Message &request, - google::protobuf::Message *result) override; - - StreamContextInterface *CreateStream( - const RpcMethod &method, ClientContext *context, - const google::protobuf::Message *request, - google::protobuf::Message *result) override; + virtual grpc_call *CreateCall(const RpcMethod &method, ClientContext *context, + CompletionQueue *cq); private: const grpc::string target_; |