Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc::Server::CallbackRequest< ServerContextType > Class Template Reference

Classes

class  CallbackCallTag
 

Public Member Functions

 CallbackRequest (Server *server, grpc::CompletionQueue *cq, grpc_core::Server::BatchCallAllocation *data)
 
 CallbackRequest (Server *server, grpc::internal::RpcServiceMethod *method, grpc::CompletionQueue *cq, grpc_core::Server::RegisteredCallAllocation *data)
 
bool FinalizeResult (void **, bool *)
 
bool FinalizeResult (void **, bool *status)
 
bool FinalizeResult (void **tag, bool *status) override
 
 ~CallbackRequest () override
 

Private Member Functions

template<class CallAllocation >
void CommonSetup (Server *server, CallAllocation *data)
 
const char * method_name () const
 
const char * method_name () const
 
const char * method_name () const
 

Private Attributes

grpc_callcall_
 
grpc_call_details *const call_details_ = nullptr
 
grpc::CompletionQueue *const cq_
 
ServerContextType * ctx_ = nullptr
 
bool ctx_alloc_by_default_ = false
 
gpr_timespec deadline_
 
grpc_core::ManualConstructor< ServerContextType > default_ctx_
 
void * handler_data_ = nullptr
 
const bool has_request_payload_
 
grpc::internal::InterceptorBatchMethodsImpl interceptor_methods_
 
grpc::internal::RpcServiceMethod *const method_
 
void * request_ = nullptr
 
grpc_metadata_array request_metadata_
 
grpc_byte_bufferrequest_payload_ = nullptr
 
grpc::Status request_status_
 
Server *const server_
 
CallbackCallTag tag_
 

Detailed Description

template<class ServerContextType>
class grpc::Server::CallbackRequest< ServerContextType >

Definition at line 226 of file include/grpcpp/server.h.

Constructor & Destructor Documentation

◆ CallbackRequest() [1/2]

template<class ServerContextType >
grpc::Server::CallbackRequest< ServerContextType >::CallbackRequest ( Server server,
grpc::internal::RpcServiceMethod method,
grpc::CompletionQueue cq,
grpc_core::Server::RegisteredCallAllocation data 
)
inline

Definition at line 547 of file server_cc.cc.

◆ CallbackRequest() [2/2]

template<class ServerContextType >
grpc::Server::CallbackRequest< ServerContextType >::CallbackRequest ( Server server,
grpc::CompletionQueue cq,
grpc_core::Server::BatchCallAllocation data 
)
inline

Definition at line 568 of file server_cc.cc.

◆ ~CallbackRequest()

template<class ServerContextType >
grpc::Server::CallbackRequest< ServerContextType >::~CallbackRequest ( )
inlineoverride

Definition at line 585 of file server_cc.cc.

Member Function Documentation

◆ CommonSetup()

template<class ServerContextType >
template<class CallAllocation >
void grpc::Server::CallbackRequest< ServerContextType >::CommonSetup ( Server server,
CallAllocation *  data 
)
inlineprivate

Definition at line 706 of file server_cc.cc.

◆ FinalizeResult() [1/3]

bool grpc::Server::CallbackRequest< grpc::CallbackServerContext >::FinalizeResult ( void **  ,
bool  
)

Definition at line 741 of file server_cc.cc.

◆ FinalizeResult() [2/3]

bool grpc::Server::CallbackRequest< grpc::GenericCallbackServerContext >::FinalizeResult ( void **  ,
bool status 
)

Definition at line 748 of file server_cc.cc.

◆ FinalizeResult() [3/3]

template<class ServerContextType >
bool grpc::Server::CallbackRequest< ServerContextType >::FinalizeResult ( void **  tag,
bool status 
)
override

◆ method_name() [1/3]

template<class ServerContextType >
const char* grpc::Server::CallbackRequest< ServerContextType >::method_name ( ) const
private

◆ method_name() [2/3]

const char * grpc::Server::CallbackRequest< grpc::CallbackServerContext >::method_name ( ) const
private

Definition at line 762 of file server_cc.cc.

◆ method_name() [3/3]

Definition at line 769 of file server_cc.cc.

Member Data Documentation

◆ call_

template<class ServerContextType >
grpc_call* grpc::Server::CallbackRequest< ServerContextType >::call_
private

Definition at line 729 of file server_cc.cc.

◆ call_details_

template<class ServerContextType >
grpc_call_details* const grpc::Server::CallbackRequest< ServerContextType >::call_details_ = nullptr
private

Definition at line 728 of file server_cc.cc.

◆ cq_

template<class ServerContextType >
grpc::CompletionQueue* const grpc::Server::CallbackRequest< ServerContextType >::cq_
private

Definition at line 732 of file server_cc.cc.

◆ ctx_

template<class ServerContextType >
ServerContextType* grpc::Server::CallbackRequest< ServerContextType >::ctx_ = nullptr
private

Definition at line 735 of file server_cc.cc.

◆ ctx_alloc_by_default_

template<class ServerContextType >
bool grpc::Server::CallbackRequest< ServerContextType >::ctx_alloc_by_default_ = false
private

Definition at line 733 of file server_cc.cc.

◆ deadline_

template<class ServerContextType >
gpr_timespec grpc::Server::CallbackRequest< ServerContextType >::deadline_
private

Definition at line 730 of file server_cc.cc.

◆ default_ctx_

template<class ServerContextType >
grpc_core::ManualConstructor<ServerContextType> grpc::Server::CallbackRequest< ServerContextType >::default_ctx_
private

Definition at line 736 of file server_cc.cc.

◆ handler_data_

template<class ServerContextType >
void* grpc::Server::CallbackRequest< ServerContextType >::handler_data_ = nullptr
private

Definition at line 726 of file server_cc.cc.

◆ has_request_payload_

template<class ServerContextType >
const bool grpc::Server::CallbackRequest< ServerContextType >::has_request_payload_
private

Definition at line 723 of file server_cc.cc.

◆ interceptor_methods_

template<class ServerContextType >
grpc::internal::InterceptorBatchMethodsImpl grpc::Server::CallbackRequest< ServerContextType >::interceptor_methods_
private

Definition at line 737 of file server_cc.cc.

◆ method_

template<class ServerContextType >
grpc::internal::RpcServiceMethod* const grpc::Server::CallbackRequest< ServerContextType >::method_
private

Definition at line 722 of file server_cc.cc.

◆ request_

template<class ServerContextType >
void* grpc::Server::CallbackRequest< ServerContextType >::request_ = nullptr
private

Definition at line 725 of file server_cc.cc.

◆ request_metadata_

template<class ServerContextType >
grpc_metadata_array grpc::Server::CallbackRequest< ServerContextType >::request_metadata_
private

Definition at line 731 of file server_cc.cc.

◆ request_payload_

template<class ServerContextType >
grpc_byte_buffer* grpc::Server::CallbackRequest< ServerContextType >::request_payload_ = nullptr
private

Definition at line 724 of file server_cc.cc.

◆ request_status_

template<class ServerContextType >
grpc::Status grpc::Server::CallbackRequest< ServerContextType >::request_status_
private

Definition at line 727 of file server_cc.cc.

◆ server_

template<class ServerContextType >
Server* const grpc::Server::CallbackRequest< ServerContextType >::server_
private

Definition at line 721 of file server_cc.cc.

◆ tag_

template<class ServerContextType >
CallbackCallTag grpc::Server::CallbackRequest< ServerContextType >::tag_
private

Definition at line 734 of file server_cc.cc.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31