|
|
|
@ -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
|
|
|
|
|