diff options
author | yang-g <yangg@google.com> | 2017-03-31 11:00:02 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-03-31 11:00:02 -0700 |
commit | d510fcfc6d1b439565c34097c083330fe42587c3 (patch) | |
tree | e603cbd513ccebd555bddd74f1939bb329216ab8 /include/grpc++/server.h | |
parent | 4beb7f2bbcb3d6268b1949a71218a38ef3cf601b (diff) |
Add ports to global server callback.
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 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 |