GRPC C++
1.66.0
|
Global callbacks are a set of hooks that are called when server events occur. More...
#include <server.h>
Public Member Functions | |
virtual | ~GlobalCallbacks () |
virtual void | UpdateArguments (ChannelArguments *) |
Called before server is created. More... | |
virtual void | PreSynchronousRequest (ServerContext *context)=0 |
Called before application callback for each synchronous server request. More... | |
virtual void | PostSynchronousRequest (ServerContext *context)=0 |
Called after application callback for each synchronous server request. More... | |
virtual void | PreServerStart (Server *) |
Called before server is started. More... | |
virtual void | AddPort (Server *, const std::string &, ServerCredentials *, int) |
Called after a server port is added. More... | |
Global callbacks are a set of hooks that are called when server events occur.
SetGlobalCallbacks method is used to register the hooks with gRPC. Note that the GlobalCallbacks instance will be shared among all Server instances in an application and can be set exactly once per application.
|
inlinevirtual |
|
inlinevirtual |
Called after a server port is added.
|
pure virtual |
Called after application callback for each synchronous server request.
|
inlinevirtual |
Called before server is started.
|
pure virtual |
Called before application callback for each synchronous server request.
|
inlinevirtual |
Called before server is created.