34 #ifndef GRPCXX_SERVER_H
35 #define GRPCXX_SERVER_H
50 #include <grpc/compression.h>
56 class GenericServerContext;
57 class AsyncGenericService;
58 class ServerAsyncStreamingInterface;
60 class ThreadPoolInterface;
98 class ShutdownRequest;
100 class UnimplementedAsyncRequestContext;
101 class UnimplementedAsyncRequest;
102 class UnimplementedAsyncResponse;
110 Server(ThreadPoolInterface* thread_pool,
bool thread_pool_owned,
154 void ShutdownInternal(gpr_timespec deadline) GRPC_OVERRIDE;
156 int max_message_size() const GRPC_OVERRIDE {
return max_message_size_; };
160 const int max_message_size_;
173 std::shared_ptr<GlobalCallbacks> global_callbacks_;
175 std::list<SyncRequest>* sync_methods_;
176 std::unique_ptr<RpcServiceMethod> unknown_method_;
177 bool has_generic_service_;
180 grpc_server*
const server_;
182 ThreadPoolInterface* thread_pool_;
184 bool thread_pool_owned_;
189 #endif // GRPCXX_SERVER_H
std::string string
Definition: config.h:112
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:494
Options for channel creation.
Definition: channel_arguments.h:52
Definition: service_type.h:63
Definition: sync_no_cxx11.h:45
virtual ~GlobalCallbacks()
Definition: server.h:81
Definition: async_generic_service.h:60
static void SetGlobalCallbacks(GlobalCallbacks *callbacks)
Set the global callback object.
Definition: sync_no_cxx11.h:87
virtual void PreSynchronousRequest(ServerContext *context)=0
Called before application callback for each synchronous server request.
Definition: grpc_library.h:49
Definition: server_credentials.h:49
Models a gRPC server.
Definition: server.h:65
Definition: server_context.h:90
Models a gRPC server.
Definition: server_interface.h:57
#define GRPC_FINAL
Definition: config.h:71
Global Callbacks.
Definition: server.h:79
A specific type of completion queue used by the processing of notifications by servers.
Definition: completion_queue.h:194
void Wait() GRPC_OVERRIDE
Block waiting for all work to complete.
virtual void PostSynchronousRequest(ServerContext *context)=0
Called after application callback for each synchronous server request.
#define GRPC_OVERRIDE
Definition: config.h:77
A builder class for the creation and startup of grpc::Server instances.
Definition: server_builder.h:55