Public Member Functions | List of all members
grpc::ClientReaderWriterInterface< W, R > Class Template Referenceabstract

#include <sync_stream.h>

Inheritance diagram for grpc::ClientReaderWriterInterface< W, R >:
Inheritance graph
[legend]

Public Member Functions

virtual void WaitForInitialMetadata ()=0
 
virtual bool WritesDone ()=0
 
- Public Member Functions inherited from grpc::internal::ClientStreamingInterface
virtual grpc::Status Finish ()=0
 
virtual ~ClientStreamingInterface ()
 
- Public Member Functions inherited from grpc::internal::WriterInterface< W >
bool Write (const W &msg)
 
virtual bool Write (const W &msg, grpc::WriteOptions options)=0
 
void WriteLast (const W &msg, grpc::WriteOptions options)
 
virtual ~WriterInterface ()
 
- Public Member Functions inherited from grpc::internal::ReaderInterface< R >
virtual bool NextMessageSize (uint32_t *sz)=0
 
virtual bool Read (R *msg)=0
 
virtual ~ReaderInterface ()
 

Detailed Description

template<class W, class R>
class grpc::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.

Definition at line 414 of file grpcpp/impl/codegen/sync_stream.h.

Member Function Documentation

◆ WaitForInitialMetadata()

template<class W , class R >
virtual void grpc::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.

◆ WritesDone()

template<class W , class R >
virtual bool grpc::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.

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30