GRPC C++  1.66.0
Public Member Functions
grpc::Server::GlobalCallbacks Class Referenceabstract

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~GlobalCallbacks()

virtual grpc::Server::GlobalCallbacks::~GlobalCallbacks ( )
inlinevirtual

Member Function Documentation

◆ AddPort()

virtual void grpc::Server::GlobalCallbacks::AddPort ( Server ,
const std::string &  ,
ServerCredentials ,
int   
)
inlinevirtual

Called after a server port is added.

◆ PostSynchronousRequest()

virtual void grpc::Server::GlobalCallbacks::PostSynchronousRequest ( ServerContext context)
pure virtual

Called after application callback for each synchronous server request.

◆ PreServerStart()

virtual void grpc::Server::GlobalCallbacks::PreServerStart ( Server )
inlinevirtual

Called before server is started.

◆ PreSynchronousRequest()

virtual void grpc::Server::GlobalCallbacks::PreSynchronousRequest ( ServerContext context)
pure virtual

Called before application callback for each synchronous server request.

◆ UpdateArguments()

virtual void grpc::Server::GlobalCallbacks::UpdateArguments ( ChannelArguments )
inlinevirtual

Called before server is created.


The documentation for this class was generated from the following file: