template <class W>

class ServerAsyncResponseWriter

Defined at line 295 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h

Async server-side API for handling unary calls, where the single

response message sent to the client is of type

Public Methods

void ServerAsyncResponseWriter<W> (grpc::ServerContext * ctx)

Defined at line 298 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h

void SendInitialMetadata (void * tag)

See

for semantics.

Side effect:

The initial metadata that will be sent to the client from this op will

be taken from the

associated with the call.

Parameters

tag [in] Tag identifying this request.

Defined at line 308 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h

void Finish (const W & msg, const grpc::Status & status, void * tag)

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.

Side effect:

- also sends initial metadata if not already sent (using the

associated with this call).

Note: if

has a non-OK code, then

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).

Parameters

tag [in] Tag identifying this request.
status [in] To be sent to the client as the result of the call.
msg [in] Message to be sent to the client.

Defined at line 340 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h

void FinishWithError (const grpc::Status & status, void * tag)

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.

Side effect:

- also sends initial metadata if not already sent (using the

associated with this call).

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).

Parameters

tag [in] Tag identifying this request.
status [in] To be sent to the client as the result of the call. - Note: must have a non-OK code.

Defined at line 377 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h