Go to the documentation of this file.
19 #ifndef GRPCPP_CHANNEL_H
20 #define GRPCPP_CHANNEL_H
43 std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>
44 interceptor_creators);
46 namespace experimental {
56 public std::enable_shared_from_this<Channel>,
73 template <
class InputMessage,
class OutputMessage>
79 std::vector<std::unique_ptr<
81 interceptor_creators);
84 std::vector<std::unique_ptr<
86 interceptor_creators);
120 std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>>
126 #endif // GRPCPP_CHANNEL_H
std::shared_ptr< Channel > CreateChannelInternal(const std::string &host, grpc_channel *c_channel, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface > > interceptor_creators_
void NotifyOnStateChangeImpl(grpc_connectivity_state last_observed, gpr_timespec deadline, grpc::CompletionQueue *cq, void *tag) override
void PerformOpsOnCall(grpc::internal::CallOpSetInterface *ops, grpc::internal::Call *call) override
void ChannelResetConnectionBackoff(Channel *channel)
std::atomic< CompletionQueue * > callback_cq_
Classes that require gRPC to be initialized should inherit from this class.
Channels represent a connection to an endpoint. Created by CreateChannel.
Codegen interface for grpc::Channel.
wrapped_grpc_channel * channel
std::string GetLoadBalancingPolicyName() const
Returns the LB policy name, or the empty string if not yet available.
grpc_connectivity_state GetState(bool try_to_connect) override
Descriptor of an RPC method.
static void * tag(intptr_t t)
grpc_channel *const c_channel_
A test-only class to access private members of Channel.
Straightforward wrapping of the C call object.
grpc::internal::Mutex mu_
Channel(const std::string &host, grpc_channel *c_channel, std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
bool WaitForStateChangeImpl(grpc_connectivity_state last_observed, gpr_timespec deadline) override
void * RegisterMethod(const char *method) override
struct grpc_channel grpc_channel
grpc::ClientContext context
std::string GetServiceConfigJSON() const
grpc::internal::Call CreateCallInternal(const grpc::internal::RpcMethod &method, grpc::ClientContext *context, grpc::CompletionQueue *cq, size_t interceptor_pos) override
grpc::internal::Call CreateCall(const grpc::internal::RpcMethod &method, grpc::ClientContext *context, grpc::CompletionQueue *cq) override
grpc::CompletionQueue * CallbackCQ() override
static grpc_completion_queue * cq
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52