GRPC C++  1.66.0
Public Member Functions | Friends
grpc::ClientWriter< W > Class Template Reference

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

#include <client_context.h>

Public Member Functions

void WaitForInitialMetadata ()
 See the ClientStreamingInterface.WaitForInitialMetadata method for semantics. More...
 
bool Write (const W &msg, grpc::WriteOptions options) override
 
bool WritesDone () override
 
grpc::Status Finish () override
 See the ClientStreamingInterface.Finish method for semantics. More...
 

Friends

class internal::ClientWriterFactory< W >
 

Detailed Description

template<class W>
class grpc::ClientWriter< W >

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

Member Function Documentation

◆ Finish()

template<class W >
grpc::Status grpc::ClientWriter< W >::Finish ( )
inlineoverride

See the ClientStreamingInterface.Finish method for semantics.

Side effects:

  • Also receives initial metadata if not already received.
  • Attempts to fill in the response parameter passed to the constructor of this instance with the response message from the server.

◆ WaitForInitialMetadata()

template<class W >
void grpc::ClientWriter< W >::WaitForInitialMetadata ( )
inline

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.

◆ Write()

template<class W >
bool grpc::ClientWriter< W >::Write ( const W &  msg,
grpc::WriteOptions  options 
)
inlineoverride

◆ WritesDone()

template<class W >
bool grpc::ClientWriter< W >::WritesDone ( )
inlineoverride

Friends And Related Function Documentation

◆ internal::ClientWriterFactory< W >

template<class W >
friend class internal::ClientWriterFactory< W >
friend

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