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 ::grpc_impl::ServerAsyncReaderWriter<ByteBuffer, ByteBuffer>
35 typedef ::grpc_impl::ServerAsyncResponseWriter<ByteBuffer>
37 typedef ::grpc_impl::ServerAsyncReader<ByteBuffer, ByteBuffer>
53 ::grpc_impl::ServerContext::Clear();
92 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
93 namespace experimental {
110 friend class ::grpc::ServerInterface;
115 ::grpc_impl::CallbackServerContext::Clear();
138 void OnDone()
override {
delete this; }
148 return new ::grpc_impl::internal::CallbackBidiHandler<
ByteBuffer,
151 return CreateReactor(static_cast<GenericCallbackServerContext*>(ctx));
158 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
163 #endif // GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H
CallbackGenericService()
Definition: async_generic_service.h:127
::grpc_impl::ServerBidiReactor< ByteBuffer, ByteBuffer > ServerGenericBidiReactor
ServerGenericBidiReactor is the reactor class for bidi streaming RPCs invoked on a CallbackGenericSer...
Definition: async_generic_service.h:100
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
void RequestCall(GenericServerContext *ctx, GenericServerAsyncReaderWriter *reader_writer, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag)
ServerBidiReactor is the interface for a bidirectional streaming RPC.
Definition: server_callback_impl.h:186
Definition: server_context_impl.h:550
AsyncGenericService()
Definition: async_generic_service.h:79
::grpc_impl::Server Server
Definition: server.h:26
const grpc::string & host() const
Definition: async_generic_service.h:44
Represents a gRPC server.
Definition: server_impl.h:64
A specific type of completion queue used by the processing of notifications by servers.
Definition: completion_queue_impl.h:424
virtual ~CallbackGenericService()
Definition: async_generic_service.h:128
A ServerContext or CallbackServerContext allows the code implementing a service handler to:
Definition: server_context_impl.h:510
Definition: async_generic_service.h:102
::grpc_impl::ServerAsyncResponseWriter< ByteBuffer > GenericServerAsyncResponseWriter
Definition: async_generic_service.h:36
const grpc::string & host() const
Definition: async_generic_service.h:106
Definition: server_callback_handlers.h:664
A sequence of bytes.
Definition: byte_buffer.h:67
::grpc_impl::ServerAsyncWriter< ByteBuffer > GenericServerAsyncWriter
Definition: async_generic_service.h:39
struct grpc_server grpc_server
A server listens to some port and responds to request calls.
Definition: grpc_types.h:65
const grpc::string & method() const
Definition: async_generic_service.h:43
CallbackGenericService is the base class for generic services implemented using the callback API and ...
Definition: async_generic_service.h:125
Definition: async_generic_service.h:77
Definition: async_generic_service.h:41
::google::protobuf::util::Status Status
Definition: config_protobuf.h:90
virtual ServerGenericBidiReactor * CreateReactor(GenericCallbackServerContext *)
The "method handler" for the generic API.
Definition: async_generic_service.h:133
::grpc_impl::ServerAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericServerAsyncReaderWriter
Definition: async_generic_service.h:34
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:115
::grpc_impl::ServerAsyncReader< ByteBuffer, ByteBuffer > GenericServerAsyncReader
Definition: async_generic_service.h:38
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue....
Definition: completion_queue_impl.h:103
const grpc::string & method() const
Definition: async_generic_service.h:105
Async server-side API for doing bidirectional streaming RPCs, where the incoming message stream comin...
Definition: async_stream_impl.h:1012
std::string string
Definition: config.h:35
Definition: server_interface.h:68