Go to the documentation of this file.
19 #ifndef GRPCPP_CHANNEL_H
20 #define GRPCPP_CHANNEL_H
37 class ChannelTestPeer;
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);
93 void* RegisterMethod(
const char* method)
override;
107 const std::string host_;
117 std::atomic<CompletionQueue*> callback_cq_{
nullptr};
120 std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>>
121 interceptor_creators_;
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)
void ChannelResetConnectionBackoff(Channel *channel)
Resets the channel's connection backoff.
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
This is an interface that Channel and Server implement to allow them to hook performing ops.
Definition: call_hook.h:30
Definition: client_context.h:103
Straightforward wrapping of the C call object.
Definition: call.h:36
std::string GetServiceConfigJSON() const
Returns the service config in JSON form, or the empty string if not available.
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:195
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:30
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call_op_set_interface.h:36
Codegen interface for grpc::Channel.
Definition: channel_interface.h:71
An InterceptedChannel is available to client Interceptors.
Definition: intercepted_channel.h:35
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpc_library.h:32
friend class grpc::testing::ChannelTestPeer
Definition: channel.h:75
Definition: client_interceptor.h:49
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue....
Definition: completion_queue.h:105
Channels represent a connection to an endpoint. Created by CreateChannel.
Definition: channel.h:54
struct grpc_channel grpc_channel
The Channel interface allows creation of Call objects.
Definition: grpc_types.h:61
std::string GetLoadBalancingPolicyName() const
Returns the LB policy name, or the empty string if not yet available.
Descriptor of an RPC method.
Definition: rpc_method.h:29
Analogous to struct timespec.
Definition: time.h:48
grpc_connectivity_state GetState(bool try_to_connect) override
Get the current channel state.