diff options
author | yang-g <yangg@google.com> | 2017-02-07 12:47:22 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-02-07 12:47:22 -0800 |
commit | f2fe4f7dbd00a285f265167bb8fec5c48fd7345b (patch) | |
tree | 799c1402911264dd8c5d8d7142fa54a4d3d28323 /include/grpc++/server.h | |
parent | 27ee9d015dff36ebf32e95c80a4d0b37ac7137ba (diff) |
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 |