GRPC C++  1.30.0
Public Member Functions
grpc_impl::ClientReaderWriterInterface< W, R > Class Template Referenceabstract

Client-side interface for bi-directional streaming with client-to-server stream messages of type W and server-to-client stream messages of type R. More...

#include <sync_stream_impl.h>

Public Member Functions

virtual void WaitForInitialMetadata ()=0
 Block to wait for initial metadata from server. More...
 
virtual bool WritesDone ()=0
 Half close writing from the client. More...
 
- Public Member Functions inherited from grpc_impl::internal::ClientStreamingInterface
virtual ~ClientStreamingInterface ()
 
virtual ::grpc::Status Finish ()=0
 Block waiting until the stream finishes and a final status of the call is available. More...
 
- Public Member Functions inherited from grpc_impl::internal::WriterInterface< W >
virtual ~WriterInterface ()
 
virtual bool Write (const W &msg, ::grpc::WriteOptions options)=0
 Block to write msg to the stream with WriteOptions options. More...
 
bool Write (const W &msg)
 Block to write msg to the stream with default write options. More...
 
void WriteLast (const W &msg, ::grpc::WriteOptions options)
 Write msg and coalesce it with the writing of trailing metadata, using WriteOptions options. More...
 
- Public Member Functions inherited from grpc_impl::internal::ReaderInterface< R >
virtual ~ReaderInterface ()
 
virtual bool NextMessageSize (uint32_t *sz)=0
 Get an upper bound on the next message size available for reading on this stream. More...
 
virtual bool Read (R *msg)=0
 Block to read a message and parse to msg. More...
 

Detailed Description

template<class W, class R>
class grpc_impl::ClientReaderWriterInterface< W, R >

Client-side interface for bi-directional streaming with client-to-server stream messages of type W and server-to-client stream messages of type R.

Member Function Documentation

◆ WaitForInitialMetadata()

template<class W , class R >
virtual void grpc_impl::ClientReaderWriterInterface< W, R >::WaitForInitialMetadata ( )
pure virtual

Block to wait for initial metadata from server.

The received metadata can only be accessed after this call returns. Should only be called before the first read. Calling this method is optional, and if it is not called the metadata will be available in ClientContext after the first read.

Implemented in grpc_impl::ClientReaderWriter< W, R >.

◆ WritesDone()

template<class W , class R >
virtual bool grpc_impl::ClientReaderWriterInterface< W, R >::WritesDone ( )
pure virtual

Half close writing from the client.

(signal that the stream of messages coming from the client is complete). Blocks until currently-pending writes are completed. Thread-safe with respect to ReaderInterface::Read

Returns
Whether the writes were successful.

Implemented in grpc_impl::ClientReaderWriter< W, R >.


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