aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-26 16:15:34 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-26 16:15:34 -0700
commitee945e8325ff7d67be6990b6193e19f865ec7b30 (patch)
treefa0d40b2a59de878f4db98636441db680b896cc8 /include
parent9db8f1ade2222a00578abf5300abd1734a0e5ed4 (diff)
Work towards removing grpc_server_shutdown
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 6e26dd07c9..d3b97489eb 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -488,18 +488,17 @@ void grpc_server_start(grpc_server *server);
/* Begin shutting down a server.
After completion, no new calls or connections will be admitted.
Existing calls will be allowed to complete.
- Shutdown is idempotent. */
-void grpc_server_shutdown(grpc_server *server);
-
-/* As per grpc_server_shutdown, but send a GRPC_OP_COMPLETE event when
- there are no more calls being serviced.
+ Send a GRPC_OP_COMPLETE event when there are no more calls being serviced.
Shutdown is idempotent, and all tags will be notified at once if multiple
grpc_server_shutdown_and_notify calls are made. */
void grpc_server_shutdown_and_notify(grpc_server *server, void *tag);
+/* Cancel all in-progress calls.
+ Only usable after shutdown. */
+void grpc_server_cancel_all_calls(grpc_server *server);
+
/* Destroy a server.
- Forcefully cancels all existing calls.
- Implies grpc_server_shutdown() if one was not previously performed. */
+ Shutdown must have completed beforehand. */
void grpc_server_destroy(grpc_server *server);
#ifdef __cplusplus