GRPC C++  1.0.0
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, 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 ( 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 ( )
inlinevirtual

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,
const WriteOptions options 
)
inlinevirtual

Blocking write msg to the stream with options.

This is thread-safe with respect to Read

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 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: