Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H
20 #define GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H
38 class AsyncGenericService;
40 class CompletionQueue;
41 class GenericServerContext;
42 class ServerCompletionQueue;
52 class ServerAsyncStreamingInterface;
55 class CallbackGenericService;
57 namespace experimental {
58 class ServerInterceptorFactoryInterface;
116 virtual void Wait() = 0;
173 bool delete_on_finalize);
242 template <
class Message>
306 bool delete_on_finalize);
314 template <
class Message>
334 notification_cq,
tag);
353 std::unique_ptr<experimental::ServerInterceptorFactoryInterface>>*
370 #endif // GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H
RegisteredAsyncRequest(ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, const char *name, internal::RpcMethod::RpcType type)
void SetRecvMessage(void *message, bool *hijacked_recv_message_failed)
~ServerInterface() override
bool FinalizeResult(void **tag, bool *status) override
virtual grpc_call_error grpc_call_cancel_with_status(grpc_call *call, grpc_status_code status, const char *description, void *reserved)=0
virtual gpr_timespec gpr_inf_future(gpr_clock_type type)=0
const internal::RpcMethod::RpcType type_
zend_class_entry * method_type
grpc::ServerContext *const context_
void AddInterceptionHookPoint(experimental::InterceptionHookPoints type)
#define T(upbtypeconst, upbtype, ctype, default_value)
virtual int max_receive_message_size() const =0
void RequestAsyncGenericCall(GenericServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
void * server_tag() const
Desriptor of an RPC service and its various RPC methods.
void PerformOpsOnCall(internal::CallOpSetInterface *ops, internal::Call *call) override=0
grpc::ServerCompletionQueue *const notification_cq_
void Shutdown(const T &deadline)
~PayloadAsyncRequest() override
grpc_call_details call_details_
bool Valid() const
Is this ByteBuffer valid?
CoreCodegenInterface * g_core_codegen_interface
Server side rpc method class.
static void * tag(intptr_t t)
bool FinalizeResult(void **tag, bool *status) override
void RequestAsyncCall(internal::RpcServiceMethod *method, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
Wrapper around grpc_server_credentials, a way to authenticate a server.
struct grpc_call grpc_call
virtual void RegisterCallbackGenericService(CallbackGenericService *)
internal::Call call_wrapper_
internal::ServerAsyncStreamingInterface *const stream_
struct grpc_server grpc_server
GenericAsyncRequest(ServerInterface *server, GenericServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize)
virtual grpc::CompletionQueue * CallbackCQ()
virtual void ShutdownInternal(gpr_timespec deadline)=0
virtual std::vector< std::unique_ptr< experimental::ServerInterceptorFactoryInterface > > * interceptor_creators()
NoPayloadAsyncRequest(internal::RpcServiceMethod *registered_method, ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
Straightforward wrapping of the C call object.
internal::InterceptorBatchMethodsImpl interceptor_methods_
const bool delete_on_finalize_
void ContinueFinalizeResultAfterInterception()
ServerInterface *const server_
virtual grpc_server * server()=0
virtual void RegisterAsyncGenericService(AsyncGenericService *service)=0
~BaseAsyncRequest() override
BaseAsyncRequest(ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize)
bool FinalizeResult(void **tag, bool *status) override
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
grpc::CompletionQueue *const call_cq_
PayloadAsyncRequest(internal::RpcServiceMethod *registered_method, ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, Message *request)
virtual bool RegisterService(const std::string *host, Service *service)=0
grpc::ClientContext context
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
An interface allowing implementors to process and filter event tags.
void RequestAsyncCall(internal::RpcServiceMethod *method, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, Message *message)
virtual void Start(grpc::ServerCompletionQueue **cqs, size_t num_cqs)=0
void IssueRequest(void *registered_method, grpc_byte_buffer **payload, grpc::ServerCompletionQueue *notification_cq)
internal::RpcServiceMethod *const registered_method_
grpc::experimental::ServerRpcInfo * set_server_rpc_info(const char *method, grpc::internal::RpcMethod::RpcType type, const std::vector< std::unique_ptr< grpc::experimental::ServerInterceptorFactoryInterface >> &creators)
virtual void grpc_call_unref(grpc_call *call)=0
virtual int AddListeningPort(const std::string &addr, ServerCredentials *creds)=0
ByteBufferPointer bbuf_ptr() const
bool FinalizeResult(void **tag, bool *status) override
RegisteredAsyncRequest is not part of the C++ API.
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:17