|
GRPC C++
1.8.0
|
Represents a gRPC server. More...
#include <server.h>
Data Structures | |
| class | GlobalCallbacks |
| Global callbacks are a set of hooks that are called when server events occur. More... | |
Public Member Functions | |
| ~Server () | |
| void | Wait () override |
| Block until the server shuts down. More... | |
| grpc_server * | c_server () |
| HealthCheckServiceInterface * | GetHealthCheckService () const |
| Returns the health check service. More... | |
| std::shared_ptr< Channel > | InProcessChannel (const ChannelArguments &args) |
| Establish a channel for in-process communication. More... | |
Public Member Functions inherited from grpc::ServerInterface | |
| virtual | ~ServerInterface () |
| template<class T > | |
| void | Shutdown (const T &deadline) |
| Shutdown the server, blocking until all rpc processing finishes. More... | |
| void | Shutdown () |
| Shutdown the server, waiting for all rpc processing to finish. More... | |
Public Member Functions inherited from grpc::internal::CallHook | |
| virtual | ~CallHook () |
Static Public Member Functions | |
| static void | SetGlobalCallbacks (GlobalCallbacks *callbacks) |
| Set the global callback object. More... | |
Friends | |
| class | AsyncGenericService |
| class | ServerBuilder |
| class | ServerInitializer |
Additional Inherited Members | |
Protected Member Functions inherited from grpc::ServerInterface | |
| template<class Message > | |
| void | RequestAsyncCall (internal::RpcServiceMethod *method, ServerContext *context, internal::ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag, Message *message) |
| void | RequestAsyncCall (internal::RpcServiceMethod *method, ServerContext *context, internal::ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag) |
| void | RequestAsyncGenericCall (GenericServerContext *context, internal::ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag) |
Represents a gRPC server.
Use a grpc::ServerBuilder to create, configure, and start Server instances.
| grpc::Server::~Server | ( | ) |
| grpc_server* grpc::Server::c_server | ( | ) |
|
inline |
Returns the health check service.
| std::shared_ptr<Channel> grpc::Server::InProcessChannel | ( | const ChannelArguments & | args | ) |
Establish a channel for in-process communication.
|
static |
Set the global callback object.
Can only be called once per application. Does not take ownership of callbacks, and expects the pointed to object to be alive until all server objects in the process have been destroyed. The same GlobalCallbacks object will be used throughout the application and is shared among all Server objects.
|
overridevirtual |
Block until the server shuts down.
Implements grpc::ServerInterface.
|
friend |
|
friend |
|
friend |
1.8.6