diff options
author | 2017-02-08 10:03:42 -0800 | |
---|---|---|
committer | 2017-02-08 10:03:42 -0800 | |
commit | f0ef22496c1e10d954f062bfa40b540eee1cac69 (patch) | |
tree | 17376c6182ce2fe69c9fc11c3b52cfe7220b9afe /include/grpc++/server.h | |
parent | 9d704d209af824986bad2069c5ad2d7f37aaac9a (diff) | |
parent | f2fe4f7dbd00a285f265167bb8fec5c48fd7345b (diff) |
Merge pull request #9629 from yang-g/qqq
Add a PreServerStart in global server callbacks
Diffstat (limited to 'include/grpc++/server.h')
-rw-r--r-- | include/grpc++/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h index fba9952e6e..002f252a8f 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -88,6 +88,8 @@ class Server final : public ServerInterface, private GrpcLibraryCodegen { virtual void PreSynchronousRequest(ServerContext* context) = 0; /// Called after application callback for each synchronous server request virtual void PostSynchronousRequest(ServerContext* context) = 0; + /// Called before server is started. + virtual void PreServerStart(Server* server) {} }; /// Set the global callback object. Can only be called once. Does not take /// ownership of callbacks, and expects the pointed to object to be alive |