GRPC C++  1.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
grpc::ClientWriter< W > Class Template Reference

#include <channel_interface.h>

Public Member Functions

template<class R >
 ClientWriter (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, R *response)
 Blocking create a stream. More...
 
void WaitForInitialMetadata ()
 
bool Write (const W &msg, WriteOptions options) override
 Blocking write msg to the stream with WriteOptions options. More...
 
bool WritesDone () override
 Half close writing from the client. More...
 
Status Finish () override
 Read the final response and wait for the final status. More...
 
- Public Member Functions inherited from grpc::ClientStreamingInterface
virtual ~ClientStreamingInterface ()
 
- Public Member Functions inherited from grpc::WriterInterface< W >
virtual ~WriterInterface ()
 
bool Write (const W &msg)
 Blocking write msg to the stream with default write options. More...
 
void WriteLast (const W &msg, WriteOptions options)
 Write msg and coalesce it with the writing of trailing metadata, using WriteOptions options. More...
 

Constructor & Destructor Documentation

template<class W >
template<class R >
grpc::ClientWriter< W >::ClientWriter ( ChannelInterface channel,
const RpcMethod method,
ClientContext context,
R *  response 
)
inline

Blocking create a stream.

Member Function Documentation

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

Read the final response and wait for the final status.

Implements grpc::ClientStreamingInterface.

template<class W >
void grpc::ClientWriter< W >::WaitForInitialMetadata ( )
inline
template<class W >
bool grpc::ClientWriter< W >::Write ( const W &  msg,
WriteOptions  options 
)
inlineoverridevirtual

Blocking write msg to the stream with WriteOptions options.

This is thread-safe with respect to Read

Parameters
msgThe message to be written to the stream.
optionsThe WriteOptions affecting the write operation.
Returns
true on success, false when the stream has been closed.

Implements grpc::WriterInterface< W >.

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

Half close writing from the client.

Block until currently-pending writes are completed. Thread safe with respect to Read operations only

Returns
Whether the writes were successful.

Implements grpc::ClientWriterInterface< W >.


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