34 #ifndef GRPCXX_IMPL_CODEGEN_CLIENT_UNARY_CALL_H 35 #define GRPCXX_IMPL_CODEGEN_CLIENT_UNARY_CALL_H 47 class CompletionQueue;
51 template <
class InputMessage,
class OutputMessage>
54 OutputMessage* result) {
56 Call call(channel->CreateCall(method, context, &cq));
61 Status status = ops.SendMessage(request);
65 ops.SendInitialMetadata(context->send_initial_metadata_,
66 context->initial_metadata_flags());
67 ops.RecvInitialMetadata(context);
68 ops.RecvMessage(result);
69 ops.ClientSendClose();
70 ops.ClientRecvStatus(context, &status);
71 call.PerformOps(&ops);
78 #endif // GRPCXX_IMPL_CODEGEN_CLIENT_UNARY_CALL_H
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
Definition: core_codegen_interface.h:97
Definition: client_context.h:154
Codegen interface for grpc::Channel.
Definition: channel_interface.h:64
Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
Definition: client_unary_call.h:52
Primary implementaiton of CallOpSetInterface.
Definition: call.h:593
A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h).
Definition: completion_queue.h:97
Definition: rpc_method.h:43
bool ok() const
Is the status OK?
Definition: status.h:67
Did it work? If it didn't, why?
Definition: status.h:45