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

#include <completion_queue.h>

Public Member Functions

 ServerWriter (Call *call, ServerContext *ctx)
 
void SendInitialMetadata () override
 Blocking send initial metadata to client. More...
 
bool Write (const W &msg, WriteOptions options) override
 Blocking write msg to the stream with WriteOptions options. More...
 
- Public Member Functions inherited from grpc::ServerStreamingInterface
virtual ~ServerStreamingInterface ()
 
- 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>
grpc::ServerWriter< W >::ServerWriter ( Call call,
ServerContext ctx 
)
inline

Member Function Documentation

template<class W>
void grpc::ServerWriter< W >::SendInitialMetadata ( )
inlineoverridevirtual

Blocking send initial metadata to client.

Implements grpc::ServerStreamingInterface.

template<class W>
bool grpc::ServerWriter< 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 >.


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