aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/codegen
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2016-01-28 17:32:48 -0800
committerGravatar Sree Kuchibhotla <sreek@google.com>2016-01-28 17:32:48 -0800
commit7fa9d6f4c83766f9efc7a187527ee3ac242ea842 (patch)
tree2e91babeac98b454d0159c23a33f34f87e3ab895 /include/grpc++/impl/codegen
parent7fbc0acf4ae9d0e719ea4917fbcbeca1d0b06b52 (diff)
TryCancel() on ServerContext()
Diffstat (limited to 'include/grpc++/impl/codegen')
-rw-r--r--include/grpc++/impl/codegen/server_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/server_context.h b/include/grpc++/impl/codegen/server_context.h
index 2af9fdaa34..868b02882d 100644
--- a/include/grpc++/impl/codegen/server_context.h
+++ b/include/grpc++/impl/codegen/server_context.h
@@ -105,6 +105,9 @@ class ServerContext {
bool IsCancelled() const;
+ // Best-effort API to cancel the call from the server.
+ void TryCancel() const;
+
const std::multimap<grpc::string_ref, grpc::string_ref>& client_metadata() {
return client_metadata_;
}