34 #ifndef GRPCXX_CHANNEL_H
35 #define GRPCXX_CHANNEL_H
43 #include <grpc/grpc.h>
51 public std::enable_shared_from_this<Channel>,
68 template <
class InputMessage,
class OutputMessage>
72 const InputMessage& request,
73 OutputMessage* result);
81 void* RegisterMethod(
const char* method)
override;
95 #endif // GRPCXX_CHANNEL_H
std::string string
Definition: config.h:50
struct grpc_channel grpc_channel
The Channel interface allows creation of Call objects.
Definition: grpc_types.h:78
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:567
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpc_library.h:52
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:168
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:42
friend std::shared_ptr< Channel > CreateChannelInternal(const grpc::string &host, grpc_channel *c_channel)
friend Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
Wrapper that performs a blocking unary call.
Definition: client_unary_call.h:52
Straightforward wrapping of the C call object.
Definition: call.h:638
Codegen interface for grpc::Channel.
Definition: channel_interface.h:64
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue.h:101
Descriptor of an RPC method.
Definition: rpc_method.h:44
Did it work? If it didn't, why?
Definition: status.h:45
Analogous to struct timespec.
Definition: gpr_types.h:62
grpc::string GetServiceConfigJSON() const
Returns the service config in JSON form, or the empty string if not available.
grpc_connectivity_state GetState(bool try_to_connect) override
Get the current channel state.
grpc::string GetLoadBalancingPolicyName() const
Returns the LB policy name, or the empty string if not yet available.
This is an interface that Channel and Server implement to allow them to hook performing ops...
Definition: call_hook.h:44
Channels represent a connection to an endpoint. Created by CreateChannel.
Definition: channel.h:49