19 #ifndef GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H
20 #define GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H
30 class CallOpSetInterface;
31 class CompletionQueue;
37 template <
class W,
class R>
43 template <
class W,
class R>
62 NotifyOnStateChangeImpl(last_observed, deadline_tp.
raw_time(), cq, tag);
70 return WaitForStateChangeImpl(last_observed, deadline_tp.
raw_time());
85 friend class ::grpc::ClientReader;
87 friend class ::grpc::ClientWriter;
88 template <
class W,
class R>
89 friend class ::grpc::ClientReaderWriter;
91 friend class ::grpc::ClientAsyncReader;
93 friend class ::grpc::ClientAsyncWriter;
94 template <
class W,
class R>
95 friend class ::grpc::ClientAsyncReaderWriter;
97 friend class ::grpc::ClientAsyncResponseReader;
98 template <
class InputMessage,
class OutputMessage>
102 const InputMessage& request,
103 OutputMessage* result);
104 friend class ::grpc::RpcMethod;
108 virtual void* RegisterMethod(
const char* method) = 0;
118 #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:388
Synchronous (blocking) client-side API for doing server-streaming RPCs, where the stream of messages ...
Definition: channel_interface.h:34
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:575
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:59
virtual grpc_connectivity_state GetState(bool try_to_connect)=0
Get the current channel state.
gpr_timespec raw_time()
Definition: time.h:41
If you are trying to use CompletionQueue::AsyncNext with a time class that isn't either gpr_timespec ...
Definition: time.h:38
Async API for client-side unary RPCs, where the message response received from the server is of type ...
Definition: async_unary_call.h:70
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:153
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:37
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:27
Straightforward wrapping of the C call object.
Definition: call.h:647
Codegen interface for grpc::Channel.
Definition: channel_interface.h:49
Async API on the client side for doing client-streaming RPCs, where the outgoing message stream going...
Definition: async_stream.h:258
channel is ready for work
Definition: connectivity_state.h:35
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue.h:86
Descriptor of an RPC method.
Definition: rpc_method.h:29
virtual ~ChannelInterface()
Definition: channel_interface.h:51
bool WaitForStateChange(grpc_connectivity_state last_observed, T deadline)
Blocking wait for channel state change or deadline expiration.
Definition: channel_interface.h:68
Did it work? If it didn't, why?
Definition: status.h:30
Analogous to struct timespec.
Definition: gpr_types.h:47
Synchronous (blocking) client-side API for bi-directional streaming RPCs, where the outgoing message ...
Definition: channel_interface.h:38
Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from ...
Definition: async_stream.h:157
bool WaitForConnected(T deadline)
Wait for this channel to be connected.
Definition: channel_interface.h:75
Synchronous (blocking) client-side API for doing client-streaming RPCs, where the outgoing message st...
Definition: channel_interface.h:36