#include <async_unary_call.h>
Public Member Functions | |
void | Finish (const W &msg, const grpc::Status &status, void *tag) |
void | FinishWithError (const grpc::Status &status, void *tag) |
void | SendInitialMetadata (void *tag) override |
ServerAsyncResponseWriter (grpc::ServerContext *ctx) | |
![]() | |
virtual | ~ServerAsyncStreamingInterface () |
Private Member Functions | |
void | BindCall (grpc::internal::Call *call) override |
Async server-side API for handling unary calls, where the single response message sent to the client is of type W.
Definition at line 295 of file grpcpp/impl/codegen/async_unary_call.h.
|
inlineexplicit |
Definition at line 298 of file grpcpp/impl/codegen/async_unary_call.h.
|
inlineoverrideprivatevirtual |
Implements grpc::internal::ServerAsyncStreamingInterface.
Definition at line 393 of file grpcpp/impl/codegen/async_unary_call.h.
|
inline |
Indicate that the stream is to be finished and request notification when the server has sent the appropriate signals to the client to end the call. Should not be used concurrently with other operations.
[in] | tag | Tag identifying this request. |
[in] | status | To be sent to the client as the result of the call. |
[in] | msg | Message to be sent to the client. |
Side effect:
Note: if status has a non-OK code, then msg will not be sent, and the client will receive only the status with possible trailing metadata.
gRPC doesn't take ownership or a reference to msg and status, so it is safe to deallocate them once the Finish operation is complete (i.e. a result arrives in the completion queue).
Definition at line 340 of file grpcpp/impl/codegen/async_unary_call.h.
|
inline |
Indicate that the stream is to be finished with a non-OK status, and request notification for when the server has finished sending the appropriate signals to the client to end the call. Should not be used concurrently with other operations.
[in] | tag | Tag identifying this request. |
[in] | status | To be sent to the client as the result of the call.
|
Side effect:
gRPC doesn't take ownership or a reference to status, so it is safe to deallocate them once the Finish operation is complete (i.e. a result arrives in the completion queue).
Definition at line 377 of file grpcpp/impl/codegen/async_unary_call.h.
|
inlineoverridevirtual |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics.
Side effect: The initial metadata that will be sent to the client from this op will be taken from the ServerContext associated with the call.
[in] | tag | Tag identifying this request. |
Implements grpc::internal::ServerAsyncStreamingInterface.
Definition at line 308 of file grpcpp/impl/codegen/async_unary_call.h.
|
private |
Definition at line 395 of file grpcpp/impl/codegen/async_unary_call.h.
|
private |
Definition at line 396 of file grpcpp/impl/codegen/async_unary_call.h.
Definition at line 402 of file grpcpp/impl/codegen/async_unary_call.h.
|
private |
Definition at line 398 of file grpcpp/impl/codegen/async_unary_call.h.