34 #ifndef GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H
35 #define GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H
45 class CallOpSetInterface;
46 class CompletionQueue;
52 template <
class W,
class R>
58 template <
class W,
class R>
77 NotifyOnStateChangeImpl(last_observed, deadline_tp.
raw_time(), cq, tag);
85 return WaitForStateChangeImpl(last_observed, deadline_tp.
raw_time());
100 friend class ::grpc::ClientReader;
102 friend class ::grpc::ClientWriter;
103 template <
class W,
class R>
104 friend class ::grpc::ClientReaderWriter;
106 friend class ::grpc::ClientAsyncReader;
108 friend class ::grpc::ClientAsyncWriter;
109 template <
class W,
class R>
110 friend class ::grpc::ClientAsyncReaderWriter;
112 friend class ::grpc::ClientAsyncResponseReader;
113 template <
class InputMessage,
class OutputMessage>
117 const InputMessage& request,
118 OutputMessage* result);
119 friend class ::grpc::RpcMethod;
123 virtual void* RegisterMethod(
const char* method) = 0;
133 #endif // GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H
Async client-side interface for bi-directional streaming, where the outgoing message stream going to ...
Definition: async_stream.h:403
Synchronous (blocking) client-side API for doing server-streaming RPCs, where the stream of messages ...
Definition: channel_interface.h:49
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:567
void NotifyOnStateChange(grpc_connectivity_state last_observed, T deadline, CompletionQueue *cq, void *tag)
Return the tag on cq when the channel state is changed or deadline expires.
Definition: channel_interface.h:74
virtual grpc_connectivity_state GetState(bool try_to_connect)=0
Get the current channel state.
gpr_timespec raw_time()
Definition: time.h:56
If you are trying to use CompletionQueue::AsyncNext with a time class that isn't either gpr_timespec ...
Definition: time.h:53
Async API for client-side unary RPCs, where the message response received from the server is of type ...
Definition: async_unary_call.h:85
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:168
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
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:42
Straightforward wrapping of the C call object.
Definition: call.h:638
Codegen interface for grpc::Channel.
Definition: channel_interface.h:64
Async API on the client side for doing client-streaming RPCs, where the outgoing message stream going...
Definition: async_stream.h:273
channel is ready for work
Definition: connectivity_state.h:50
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
virtual ~ChannelInterface()
Definition: channel_interface.h:66
bool WaitForStateChange(grpc_connectivity_state last_observed, T deadline)
Blocking wait for channel state change or deadline expiration.
Definition: channel_interface.h:83
Did it work? If it didn't, why?
Definition: status.h:45
Analogous to struct timespec.
Definition: gpr_types.h:62
Synchronous (blocking) client-side API for bi-directional streaming RPCs, where the outgoing message ...
Definition: channel_interface.h:53
Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from ...
Definition: async_stream.h:172
bool WaitForConnected(T deadline)
Wait for this channel to be connected.
Definition: channel_interface.h:90
Synchronous (blocking) client-side API for doing client-streaming RPCs, where the outgoing message st...
Definition: channel_interface.h:51