Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H
20 #define GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H
37 class ServerContextBase;
55 Status req_status,
void* handler_data,
121 "You are marking method %s as '%s', even though it was "
122 "previously marked '%s'. This behavior will overwrite the original "
123 "behavior. If you expected this then ignore this message.",
145 return "raw_callback";
155 #endif // GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H
MethodHandler * handler() const
if MethodHandler is nullptr, then this is an async method
RpcServiceMethod(const char *name, RpcMethod::RpcType type, MethodHandler *handler)
Takes ownership of the handler.
void *const internal_data
void * server_tag() const
std::unique_ptr< MethodHandler > handler_
Server side rpc method class.
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
grpc::ServerContextBase *const server_context
Base class of ServerContext.
Descriptor of an RPC method.
static void * tag(intptr_t t)
virtual void * Deserialize(grpc_call *, grpc_byte_buffer *req, Status *, void **)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
struct grpc_call grpc_call
void set_server_tag(void *tag)
const char * name() const
const std::function< void()> call_requester
const char * TypeToString(RpcServiceMethod::ApiType type)
Straightforward wrapping of the C call object.
Base class for running an RPC handler.
HandlerParameter(Call *c, grpc::ServerContextBase *context, void *req, Status req_status, void *handler_data, std::function< void()> requester)
void SetHandler(MethodHandler *handler)
void SetServerApiType(RpcServiceMethod::ApiType type)
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
virtual void RunHandler(const HandlerParameter ¶m)=0
grpc::ClientContext context
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:13