Public Member Functions | List of all members
grpc::Server::GlobalCallbacks Class Referenceabstract

#include <server.h>

Public Member Functions

virtual void AddPort (Server *, const std::string &, ServerCredentials *, int)
 Called after a server port is added. 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 PreSynchronousRequest (ServerContext *context)=0
 Called before application callback for each synchronous server request. More...
 
virtual void UpdateArguments (ChannelArguments *)
 Called before server is created. More...
 
virtual ~GlobalCallbacks ()
 

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.

Definition at line 75 of file include/grpcpp/server.h.

Constructor & Destructor Documentation

◆ ~GlobalCallbacks()

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

Definition at line 77 of file include/grpcpp/server.h.

Member Function Documentation

◆ AddPort()

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

Called after a server port is added.

Definition at line 87 of file include/grpcpp/server.h.

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

Definition at line 85 of file include/grpcpp/server.h.

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

Definition at line 79 of file include/grpcpp/server.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31