GRPC C++  1.26.0
Public Member Functions
grpc_impl::Server::GlobalCallbacks Class Referenceabstract

Global callbacks are a set of hooks that are called when server events occur. More...

#include <server_impl.h>

Public Member Functions

virtual ~GlobalCallbacks ()
 
virtual void UpdateArguments (ChannelArguments *)
 Called before server is created. More...
 
virtual void PreSynchronousRequest (grpc_impl::ServerContext *context)=0
 Called before application callback for each synchronous server request. More...
 
virtual void PostSynchronousRequest (grpc_impl::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 grpc::string &, grpc::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_impl::Server::GlobalCallbacks::~GlobalCallbacks ( )
inlinevirtual

Member Function Documentation

◆ AddPort()

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

Called after a server port is added.

◆ PostSynchronousRequest()

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

Called after application callback for each synchronous server request.

◆ PreServerStart()

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

Called before server is started.

◆ PreSynchronousRequest()

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

Called before application callback for each synchronous server request.

◆ UpdateArguments()

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

Called before server is created.


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