GRPC C++  1.0.0
Public Member Functions
grpc::AsyncWriterInterface< W > Class Template Referenceabstract

An interface that can be fed a sequence of messages of type W. More...

#include <async_stream.h>

Public Member Functions

virtual ~AsyncWriterInterface ()
 
virtual void Write (const W &msg, void *tag)=0
 Request the writing of msg with identifying tag tag. More...
 

Detailed Description

template<class W>
class grpc::AsyncWriterInterface< W >

An interface that can be fed a sequence of messages of type W.

Constructor & Destructor Documentation

template<class W >
virtual grpc::AsyncWriterInterface< W >::~AsyncWriterInterface ( )
inlinevirtual

Member Function Documentation

template<class W >
virtual void grpc::AsyncWriterInterface< W >::Write ( const W &  msg,
void *  tag 
)
pure virtual

Request the writing of msg with identifying tag tag.

Only one write may be outstanding at any given time. This means that after calling Write, one must wait to receive tag from the completion queue BEFORE calling Write again. This is thread-safe with respect to Read

Parameters
[in]msgThe message to be written.
[in]tagThe tag identifying the operation.

Implemented in grpc::ServerAsyncReaderWriter< W, R >, grpc::ServerAsyncWriter< W >, grpc::ClientAsyncReaderWriter< W, R >, and grpc::ClientAsyncWriter< W >.


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