GRPC C++  1.46.2
Public Member Functions | Friends
grpc::ClientReader< R > Class Template Reference

Synchronous (blocking) client-side API for doing server-streaming RPCs, where the stream of messages coming from the server has messages of type R. More...

#include <channel_interface.h>

Public Member Functions

void WaitForInitialMetadata () override
 See the ClientStreamingInterface.WaitForInitialMetadata method for semantics. More...
 
bool NextMessageSize (uint32_t *sz) override
 
bool Read (R *msg) override
 See the ReaderInterface.Read method for semantics. More...
 
grpc::Status Finish () override
 See the ClientStreamingInterface.Finish method for semantics. More...
 

Friends

class internal::ClientReaderFactory< R >
 

Detailed Description

template<class R>
class grpc::ClientReader< R >

Synchronous (blocking) client-side API for doing server-streaming RPCs, where the stream of messages coming from the server has messages of type R.

Member Function Documentation

◆ Finish()

template<class R >
grpc::Status grpc::ClientReader< R >::Finish ( )
inlineoverride

See the ClientStreamingInterface.Finish method for semantics.

Side effect: The ClientContext associated with this call is updated with possible metadata received from the server.

◆ NextMessageSize()

template<class R >
bool grpc::ClientReader< R >::NextMessageSize ( uint32_t *  sz)
inlineoverride

◆ Read()

template<class R >
bool grpc::ClientReader< R >::Read ( R *  msg)
inlineoverride

See the ReaderInterface.Read method for semantics.

Side effect: This also receives initial metadata from the server, if not already received (if initial metadata is received, it can be then accessed through the ClientContext associated with this call).

◆ WaitForInitialMetadata()

template<class R >
void grpc::ClientReader< R >::WaitForInitialMetadata ( )
inlineoverride

See the ClientStreamingInterface.WaitForInitialMetadata method for semantics.

Once complete, the initial metadata read from the server will be accessible through the ClientContext used to construct this object.

status ignored

Friends And Related Function Documentation

◆ internal::ClientReaderFactory< R >

template<class R >
friend class internal::ClientReaderFactory< R >
friend

The documentation for this class was generated from the following files: