Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H
20 #define GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H
33 typedef ServerAsyncReaderWriter<ByteBuffer, ByteBuffer>
41 const std::string&
method()
const {
return method_; }
42 const std::string&
host()
const {
return host_; }
82 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
83 namespace experimental {
93 const std::string&
method()
const {
return method_; }
94 const std::string&
host()
const {
return host_; }
97 friend class ::grpc::Server;
119 void OnDone()
override {
delete this; }
137 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
142 #endif // GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H
CallbackGenericService()
Definition: async_generic_service.h:108
A ServerContext or CallbackServerContext allows the code implementing a service handler to:
Definition: server_context.h:546
Represents a gRPC server.
Definition: server.h:59
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
Definition: server_context.h:586
Async server-side API for doing server streaming RPCs, where the outgoing message stream from the ser...
Definition: async_stream.h:844
ServerAsyncReader< ByteBuffer, ByteBuffer > GenericServerAsyncReader
Definition: async_generic_service.h:36
ServerAsyncResponseWriter< ByteBuffer > GenericServerAsyncResponseWriter
Definition: async_generic_service.h:35
void RequestCall(GenericServerContext *ctx, GenericServerAsyncReaderWriter *reader_writer, ::grpc::CompletionQueue *call_cq, ::grpc::ServerCompletionQueue *notification_cq, void *tag)
AsyncGenericService()
Definition: async_generic_service.h:70
virtual ~CallbackGenericService()
Definition: async_generic_service.h:109
Definition: async_generic_service.h:91
ServerBidiReactor is the interface for a bidirectional streaming RPC.
Definition: server_callback.h:186
struct grpc_server grpc_server
A server listens to some port and responds to request calls.
Definition: grpc_types.h:65
const std::string & host() const
Definition: async_generic_service.h:94
const std::string & method() const
Definition: async_generic_service.h:93
CallbackGenericService is the base class for generic services implemented using the callback API and ...
Definition: async_generic_service.h:106
Definition: async_generic_service.h:68
Definition: async_generic_service.h:39
::google::protobuf::util::Status Status
Definition: config_protobuf.h:91
virtual ServerGenericBidiReactor * CreateReactor(GenericCallbackServerContext *)
The "method handler" for the generic API.
Definition: async_generic_service.h:114
Async server-side API for handling unary calls, where the single response message sent to the client ...
Definition: async_unary_call.h:294
Definition: server_callback.h:46
@ UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:115
A specific type of completion queue used by the processing of notifications by servers.
Definition: completion_queue.h:426
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue....
Definition: completion_queue.h:102
ServerAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericServerAsyncReaderWriter
Definition: async_generic_service.h:34
const std::string & host() const
Definition: async_generic_service.h:42
Async server-side API for doing client-streaming RPCs, where the incoming message stream from the cli...
Definition: async_stream.h:697
Async server-side API for doing bidirectional streaming RPCs, where the incoming message stream comin...
Definition: async_stream.h:1009
Definition: server_interface.h:65
ServerAsyncWriter< ByteBuffer > GenericServerAsyncWriter
Definition: async_generic_service.h:37
const std::string & method() const
Definition: async_generic_service.h:41