aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/generic
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-01-14 18:00:04 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-01-15 16:49:16 -0800
commit44f3249018480c7ef14ff5fdc4a13462124c34e6 (patch)
tree8ba6abd9cc53b7ad3986d5341fb50bb3a86a812e /include/grpc++/generic
parentec0d07f58e054e0043168e8aba8f6755ac8706ca (diff)
Introduced ServerInterface
Diffstat (limited to 'include/grpc++/generic')
-rw-r--r--include/grpc++/generic/async_generic_service.h3
-rw-r--r--include/grpc++/generic/generic_stub.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc++/generic/async_generic_service.h b/include/grpc++/generic/async_generic_service.h
index 33045b8d85..36ef8fc850 100644
--- a/include/grpc++/generic/async_generic_service.h
+++ b/include/grpc++/generic/async_generic_service.h
@@ -51,6 +51,7 @@ class GenericServerContext GRPC_FINAL : public ServerContext {
private:
friend class Server;
+ friend class ServerInterface;
grpc::string method_;
grpc::string host_;
@@ -76,4 +77,4 @@ class AsyncGenericService GRPC_FINAL {
} // namespace grpc
-#endif // GRPCXX_GENERIC_ASYNC_GENERIC_SERVICE_H \ No newline at end of file
+#endif // GRPCXX_GENERIC_ASYNC_GENERIC_SERVICE_H
diff --git a/include/grpc++/generic/generic_stub.h b/include/grpc++/generic/generic_stub.h
index 1bb7900b06..cd8fb54aed 100644
--- a/include/grpc++/generic/generic_stub.h
+++ b/include/grpc++/generic/generic_stub.h
@@ -47,7 +47,7 @@ typedef ClientAsyncReaderWriter<ByteBuffer, ByteBuffer>
// by name.
class GenericStub GRPC_FINAL {
public:
- explicit GenericStub(std::shared_ptr<Channel> channel) : channel_(channel) {}
+ explicit GenericStub(std::shared_ptr<ChannelInterface> channel) : channel_(channel) {}
// begin a call to a named method
std::unique_ptr<GenericClientAsyncReaderWriter> Call(
@@ -55,7 +55,7 @@ class GenericStub GRPC_FINAL {
void* tag);
private:
- std::shared_ptr<Channel> channel_;
+ std::shared_ptr<ChannelInterface> channel_;
};
} // namespace grpc