From d510fcfc6d1b439565c34097c083330fe42587c3 Mon Sep 17 00:00:00 2001 From: yang-g Date: Fri, 31 Mar 2017 11:00:02 -0700 Subject: Add ports to global server callback. --- include/grpc++/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/grpc++') diff --git a/include/grpc++/server.h b/include/grpc++/server.h index 3e54405974..489937712e 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -88,6 +88,8 @@ class Server final : public ServerInterface, private GrpcLibraryCodegen { virtual void PostSynchronousRequest(ServerContext* context) = 0; /// Called before server is started. virtual void PreServerStart(Server* server) {} + /// Called after a server port is added. + virtual void AddPort(Server* server, int port) {} }; /// 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 -- cgit v1.2.3