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

#include <channel.h>

Public Member Functions

template<class R >
 ClientWriter (Channel *channel, const RpcMethod &method, ClientContext *context, R *response)
 Blocking create a stream. More...
 
bool Write (const W &msg, const WriteOptions &options) GRPC_OVERRIDE
 Blocking write msg to the stream with options. More...
 
bool WritesDone () GRPC_OVERRIDE
 Half close writing from the client. More...
 
Status Finish () GRPC_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 options. More...
 

Constructor & Destructor Documentation

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

Blocking create a stream.

Member Function Documentation

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

Read the final response and wait for the final status.

Implements grpc::ClientStreamingInterface.

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

Blocking write msg to the stream with options.

Parameters
msgThe message to be written to the stream.
optionsOptions 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 ( )
inlinevirtual

Half close writing from the client.

Block until writes are completed.

Returns
Whether the writes were successful.

Implements grpc::ClientWriterInterface< W >.


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