diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/grpc.h | 13 |
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 |