class ClientAsyncStreamingInterface

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

Common interface for all client side asynchronous streaming.

Public Methods

void StartCall (void * tag)

Start the call that was set up by the constructor, but only if the

constructor was invoked through the "Prepare" API which doesn't actually

start the call

void ReadInitialMetadata (void * tag)

Request notification of the reading of the initial metadata. Completion

will be notified by

on the associated completion queue.

This call is optional, but if it is used, it cannot be used concurrently

with or after the

method.

Parameters

tag [in] Tag identifying this request.
void Finish (grpc::Status * status, void * tag)

Indicate that the stream is to be finished and request notification for

when the call has been ended.

Should not be used concurrently with other operations.

It is appropriate to call this method exactly once when both:

* the client side has no more message to send

(this can be declared implicitly by calling this method, or

explicitly through an earlier call to the

WritesDone

method

of the class in use, e.g.

or

* there are no more messages to be received from the server (this can

be known implicitly by the calling code, or explicitly from an

earlier call to

that yielded a failed

result, e.g. cq->Next(

&read

_tag,

&ok

) filled in 'ok' with 'false').

The tag will be returned when either:

- all incoming messages have been read and the server has returned

a status.

- the server has returned a non-OK status.

- the call failed for some reason and the library generated a

status.

Note that implementations of this method attempt to receive initial

metadata from the server if initial metadata hasn't yet been received.

Parameters

tag [in] Tag identifying this request.
status [out] To be updated with the operation status.
void ~ClientAsyncStreamingInterface ()

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