GRPC C++  1.0.0
Data Structures | Public Member Functions | Static Public Member Functions | Friends
grpc::Server Class Reference

Models a gRPC server. More...

#include <server.h>

Data Structures

class  GlobalCallbacks
 Global Callbacks. More...
 

Public Member Functions

 ~Server ()
 
void Wait () GRPC_OVERRIDE
 Block waiting for all work to complete. More...
 
grpc_serverc_server ()
 
CompletionQueuecompletion_queue ()
 
- 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::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 (RpcServiceMethod *method, ServerContext *context, ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag, Message *message)
 
void RequestAsyncCall (RpcServiceMethod *method, ServerContext *context, ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncGenericCall (GenericServerContext *context, ServerAsyncStreamingInterface *stream, CompletionQueue *call_cq, ServerCompletionQueue *notification_cq, void *tag)
 

Detailed Description

Models a gRPC server.

Servers are configured and started via grpc::ServerBuilder.

Constructor & Destructor Documentation

grpc::Server::~Server ( )

Member Function Documentation

grpc_server* grpc::Server::c_server ( )
CompletionQueue* grpc::Server::completion_queue ( )
static void grpc::Server::SetGlobalCallbacks ( GlobalCallbacks callbacks)
static

Set the global callback object.

Can only be called once. 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.

void grpc::Server::Wait ( )
virtual

Block waiting for all work to complete.

Warning
The server must be either shutting down or some other thread must call Shutdown for this function to ever return.

Implements grpc::ServerInterface.

Friends And Related Function Documentation

friend class AsyncGenericService
friend
friend class ServerBuilder
friend
friend class ServerInitializer
friend

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