diff options
author | 2016-08-23 10:04:03 -0700 | |
---|---|---|
committer | 2016-08-23 10:04:03 -0700 | |
commit | 6b93d46bb841200f100cb0dd7f8c6b62af445078 (patch) | |
tree | 4cdca03650880f22f52178a0046937cf04f4032a /include/grpc++/impl/codegen/server_context.h | |
parent | 56d7044ed808e08af8b7a812a140bd751622f15c (diff) |
Adding extension points for security context.
Diffstat (limited to 'include/grpc++/impl/codegen/server_context.h')
-rw-r--r-- | include/grpc++/impl/codegen/server_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/server_context.h b/include/grpc++/impl/codegen/server_context.h index 08212af861..82cb5a32ea 100644 --- a/include/grpc++/impl/codegen/server_context.h +++ b/include/grpc++/impl/codegen/server_context.h @@ -166,6 +166,12 @@ class ServerContext { async_notify_when_done_tag_ = tag; } + // Should be used for framework-level extensions only. + // Applications never need to call this method. + grpc_call* c_call() const { + return call_; + } + private: friend class ::grpc::testing::InteropServerContextInspector; friend class ::grpc::ServerInterface; |