Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from the server has messages of type R.
More...
#include <async_stream.h>
template<class R>
class grpc::ClientAsyncReader< R >
Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from the server has messages of type R.
◆ Finish()
See the ClientAsyncStreamingInterface.Finish method for semantics.
Side effect:
- the ClientContext associated with this call is updated with possible initial and trailing metadata received from the server.
Implements grpc::internal::ClientAsyncStreamingInterface.
◆ operator delete() [1/2]
◆ operator delete() [2/2]
◆ Read()
Read a message of type R into msg.
Completion will be notified by tag on the associated completion queue. This is thread-safe with respect to Write or WritesDone methods. It should not be called concurrently with other streaming APIs on the same stream. It is not meaningful to call it concurrently with another AsyncReaderInterface::Read on the same stream since reads on the same stream are delivered in order.
- Parameters
-
| [out] | msg | Where to eventually store the read message. |
| [in] | tag | The tag identifying the operation. |
Side effect: note that this method attempt to receive initial metadata for a stream if it hasn't yet been received.
Implements grpc::internal::AsyncReaderInterface< R >.
◆ ReadInitialMetadata()
See the ClientAsyncStreamingInterface.ReadInitialMetadata method for semantics.
Side effect:
- upon receiving initial metadata from the server, the ClientContext associated with this call is updated, and the calling code can access the received metadata through the ClientContext.
Implements grpc::internal::ClientAsyncStreamingInterface.
◆ StartCall()
◆ internal::ClientAsyncReaderFactory< R >
The documentation for this class was generated from the following file: