34 #ifndef GRPCXX_CHANNEL_H
35 #define GRPCXX_CHANNEL_H
43 #include <grpc/grpc.h>
51 public std::enable_shared_from_this<Channel>,
61 template <
class InputMessage,
class OutputMessage>
65 const InputMessage& request,
66 OutputMessage* result);
76 void NotifyOnStateChangeImpl(grpc_connectivity_state last_observed,
79 bool WaitForStateChangeImpl(grpc_connectivity_state last_observed,
83 grpc_channel*
const c_channel_;
88 #endif // GRPCXX_CHANNEL_H
std::string string
Definition: config.h:112
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:494
grpc_connectivity_state GetState(bool try_to_connect) GRPC_OVERRIDE
Get the current channel state.
Definition: client_context.h:152
Definition: grpc_library.h:49
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)
Definition: client_unary_call.h:51
Codegen interface for grpc::Channel.
Definition: channel_interface.h:64
A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h).
Definition: completion_queue.h:81
#define GRPC_FINAL
Definition: config.h:71
Definition: rpc_method.h:43
Did it work? If it didn't, why?
Definition: status.h:45
Channel and Server implement this to allow them to hook performing ops.
Definition: call_hook.h:43
#define GRPC_OVERRIDE
Definition: config.h:77
Channels represent a connection to an endpoint. Created by CreateChannel.
Definition: channel.h:49